Sebuahhobi98

send multiple data in nrf

Sep 22nd, 2019
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. //sender:
  2. float a[5];
  3.  a[0] = 0.15;
  4.  a[1] = 0.17;
  5.  
  6.   radio.write(&a, sizeof(a));
  7.  
  8. //receviver:
  9. float a[5];
  10.     radio.read(&a, sizeof(a));
  11. Serial.println(a[0]);
  12.     Serial.println(a[1]);
Add Comment
Please, Sign In to add comment