Print the values on the "debug" serial port Use the lowest possible data rate to reduce error ratio The data rate must be much higher than the "link" serial port SoftwareSerial linkSerial(4, 5) // RX, TX Please see SoftwareSerial library for detail In the following code I only want the solution for transferring values from Arduino to NOdemcu and not for uploading the values to MySQL database. I am open to any other solution which will help me out in sending sensor data from Arduino UNO to Nodemcu ESP8266. I have also attached the code snippets and the output. The sole problem here is that, in the code part for Nodemcu, only this "String incomingString = linkSerial.readString() " line gets executed and the code below this is not executed.Ĭan somebody help me with this. I am designing a device to monitor air pollutants and the data sensed by the sensors are to be uploaded on the MySQL database.īelow, I have written a basic code for sending multiple static values from Arduino UNO to Nodemcu ESP8266 using JSON. I am a beginner in the field of Arduino and I need a help in the following.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |