IoT irrigation system using bolt.... my project iwas built html bage to start system first and iwas connect serial hardware pins in arduino to serial port in bolt hardware. but I have problems Cannot send data to cloud bolt

If(serial.avaliable()){
String data = analogRead(A7);
Serial. Printing(data);

@141043: It would be best to use the BoltIoT-Arduino-Helper library for this project.
The link to the library is below

The readme of the library contain steps to install the library.

For your system, you will have to write the following code in the Arduino.

#include<BoltIoT-Arduino-Helper.h>

void setup(){
   boltiot.begin(Serial);
}

void loop(){
    boltiot.processPushDataCommand(analogRead(A7));
}

Then configure your Cloud product for UART, Input, and to pull only 1 CSV value from the Bolt.
The system should start working as you want it to.

1 Like