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*
-
1You 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 purposechrisl– chrisl2020-11-27 07:55:56 +00:00Commented 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".Mats Karlsson– Mats Karlsson2020-11-27 09:28:24 +00:00Commented 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.Mats Karlsson– Mats Karlsson2020-11-27 09:31:00 +00:00Commented Nov 27, 2020 at 9:31
-
Delete you AIO details from sketch.Tomas– Tomas2022-08-21 12:06:40 +00:00Commented 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 numbersTomas– Tomas2022-08-21 12:17:10 +00:00Commented Aug 21, 2022 at 12:17
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. arduino-uno), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cpp