#include"ToIoTwithWIFI.h"
#include"config.h"double value = 0.0; // your sensor value
ToIoTwithWIFI t;
voidsetup() {
// These parameters are in the config.h file.
t.setupToIoTwithWIFI(nodeId, ssid, password, mqtt_server, mqtt_port);
}
voidloop() {
/* Read sensor values and call the pub function with the sensor uuid, number of values, and values as arguments */
t.pub("sensor-uuid-1", 1, value);
t.pub("sensor-uuid-2", 2, value, value);
t.pub("sensor-uuid-3", 3, value, value, value);
delay(4000);
}