Sending Sensor Data From Arduino And Sending To Bolt IOT

@pranivbyju17

In the arduino code, replace

float t = dht.readTemperature();
boltiot.CheckPoll(t);

with

boltiot.processPushDataCommand(dht.readTemperature());

You can declare a float variable outside the void function, and directly change the data to have a floating precise.

Example,

DHT dht(DHTPIN, DHTTYPE);

float DATA;

void setup() {
boltiot.Begin(Serial);

dht.begin();
}

void loop() {

DATA = dht.readTemperature();
boltiot.processPushDataCommand(DATA);

}

In Bolt Cloud, select UART > select 1 CSV value and declare it on the pin section.

With the following changes and Chart code, you should see the data on your cloud.

Let me know if you face any issues or have any queries.