When I send ,
1
Arduino returns and the 'receive' function output this result,
receive 5 bytes
06 98 78 1E F8
--- (this changes into two outputs like 4bytes, 1 byte or 3 bytes , 2byte as if it is two read from the Arduino board)
My Arduino code is simple ,
void loop(){
//forword();
if(Serial.available() > 0){ //if some date is sent, reads it and saves in state
state = Serial.read();
Serial.print(state);
The data received in hex is different from data sent (in this case - I sent 1). Any idea what the issue is. Thx.