fix bool leakage

pull/42/head
SH 2020-11-26 08:33:58 +01:00
rodzic 3f74b3a8aa
commit 2a43004b71
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -145,7 +145,7 @@ struct st_kisstnc {
};
struct st_mqtt {
bool active;
int active;
char id[64];
char host[64];
int port;

Wyświetl plik

@ -23,7 +23,7 @@ void MQTT::init(const char* ip, uint16_t port, const char* id, const char *usern
this->prefix = prefix;
char buffer[20];
snprintf(buffer, 20, "%s%d", id, random(0, 1000));
snprintf(buffer, 20, "%s%6ld", id, random(0, 1000));
this->id = buffer;
Serial.println("[MQTT] pubsub client");