send dance roll position in percent
This commit is contained in:
5
main.c
5
main.c
@@ -88,11 +88,12 @@ void send_info(void){
|
||||
msg[0] = '0';
|
||||
mqtt_pub(&mqtt_client, "/Filamentanlage/05_Abzug/state/kraft", msg, strlen(msg));
|
||||
|
||||
ltoa(taenzer_state.pos, msg, 10);
|
||||
int8_t temp = taenzer_state.pos / 10000;
|
||||
ltoa(temp, msg, 10);
|
||||
mqtt_pub(&mqtt_client, "/Filamentanlage/05_Abzug/state/speicher/pos", msg, strlen(msg));
|
||||
|
||||
sprintf(msg, "%ld", millis()/1000);
|
||||
mqtt_pub(&mqtt_client, "/Filamentanlage/04_Abzug/state/uptime", msg, strlen(msg));
|
||||
mqtt_pub(&mqtt_client, "/Filamentanlage/05_Abzug/state/uptime", msg, strlen(msg));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user