Hello,
I don’t understand how to use WEBSer.
I want to retrieve a numerical value transmitted by my Arduino.
Here is a test example of my C++ code:
void setup() {
Serial.begin(9600);
delay(100);
}
void loop() {
for (int i = 0; i < 100; i++) {
delay(100);
Serial.println(i);
}}
What do I need to do to retrieve this value using SNAP!?
Thanks.
PS : an example .xml is welcome :D
You may try
It opens a serial port and reads bytes sent.
Things to consider/
WEBSer read in nonblocking. It returns immediately with a list of bytes or an empty list.
- There are no built-in boundaries in serial communication. Received data must be accumulated until you find that data meaningful.
thank you it’s working!
but i dont understand, how i can use this (sorry i am dummy).
if i want to use the dataIn to move my sprite (move x : “dataIn” ), how i do ?
no succes for the moment from my side :D
thx again
WEBSer is a minimal implementation to build more complex solutions based on it.
DataIn is a list. You may get a first value (byte 0..255) with

If you send text
