kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
fix bool leakage
rodzic
3f74b3a8aa
commit
2a43004b71
|
@ -145,7 +145,7 @@ struct st_kisstnc {
|
|||
};
|
||||
|
||||
struct st_mqtt {
|
||||
bool active;
|
||||
int active;
|
||||
char id[64];
|
||||
char host[64];
|
||||
int port;
|
||||
|
|
|
@ -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");
|
||||
|
|
Ładowanie…
Reference in New Issue