Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    You didn't describe, what actually happens, just that it doesn't work. Please add this description to your question. At the first glance I see, that you send up to every halve second, while you receive only once a second, since you delay for 1s. Why are you even delaying there? That doesn't fit any purpose Commented Nov 27, 2020 at 7:55
  • I agree with @chrisl, don't use delay, bad practice, search for "Arduino millis delay" that's a better way. And why do you transfer a value without a tag, when I have done similar tasks I have used a transfer format like "<type>, <value>", example "speed, 200". Commented Nov 27, 2020 at 9:28
  • And to trouble shoot, create a simple KISS program so you learn how to do transfer over serial first before you do a more complex program. Commented Nov 27, 2020 at 9:31
  • Delete you AIO details from sketch. Commented Aug 21, 2022 at 12:06
  • give us example of data and what is extra. I for one have noticed that you use println, so after each message you are getting a newline symbol. (extra data at the end). Although NODEMCU sends some data to serial every time it starts. Also dont forget the difference between number and symbols of numbers. print sends numbers as their symbols, while "write" sends numbers as numbers Commented Aug 21, 2022 at 12:17