Hello Community,
I am facing a problem for last couple of weeks and i don't find the solution till now. Pls Help ..
I am sending string data from Mobile Application to Arduino Due (through HC05). But the data is not receiving at Arduino DUE Serial Monitor.
(note: Some part of data is receiving on Arduino Mega & UNO but due to limitation in memory, i have to use DUE. At DUE data is totally not receiving)
I am using Programming Port of Arduino DUE.
My code is as follows
float sens;
String s;
void setup() {
Serial.begin(115200);
}
void loop() {
if(Serial.available() > 0){
sens = Serial.read();
s=Serial.readString();
sens=Serial.parseFloat();
Serial.println(s);
Serial.println();
Serial.println(sens);
}
}
Please help where i am going wrong. Thanks in advance