Serial.read() forward to Pushbullet

Hi all,
can I save/buffer a word or phrase that I get via Serial.read() to share it in whole via Pushbullet or by mail? I have a Uno that passes serial data to a Wemos D1 mini. I see the data. But I don't get them forwarded. I do get them forwarded but only one character at a time.

My loop at the moment (Wemos D1 mini):

void loop() {
  ArduinoOTA.handle();
  server.handleClient();
   
if (Serial.available() > 0) {  
    data = Serial.read(); 
    //sendData = (char)data;
    String send = String((char)data);
 
    Serial.print((String)send);       
   
    //sendmails((String)(sendData);
    pushbullet(static_cast<String>(sendData));
  }
}

Take a look at the techniques used in Serial input basics - updated to receive a series of characters and put them into an array for processing as a whole

2 Likes

See this Arduino to Arduino via Serial for an complete project that transfers data to ESP8266 and on to a webpage.

Works perfectly. The second example is what I needed. Thank you.

Thanks for the link.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.