New answers tagged string
1
vote
Clear serial data for new incoming values
The error lays in your algorithm to collect the command. Your sketch uses the space character ' ' as the separator between incoming messages.
After the first transmission of "voltage 100", ...
0
votes
Clear serial data for new incoming values
It is difficult to help with out knowing exactly what characters are being sent and why. If we assume this is what is being sent:
"voltage 24\n"
"voltage 24\n"
"voltage 55\n&...
Top 50 recent answers are included
Related Tags
string × 321arduino-uno × 67
serial × 66
c++ × 40
programming × 37
array × 32
esp8266 × 25
arduino-ide × 20
c-string × 18
c × 16
arduino-mega × 13
memory × 13
esp32 × 11
serial-data × 11
float × 10
pointer × 9
convert × 9
arduino-nano × 8
lcd × 7
data-type × 7
json × 7
softwareserial × 6
communication × 6
sd-card × 6
memory-usage × 6