Advertisement
pierfraxxxx

BLEtest

Aug 5th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. byte comdata;
  2.  
  3. void setup()
  4. {
  5. Serial.begin(9600);
  6. Serial.println("BLE Test");
  7. }
  8.  
  9. void loop()
  10. {
  11. while (Serial.available() > 0)
  12. {
  13. comdata = Serial.read();
  14. delay(2);
  15. Serial.write(comdata);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement