Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. void loop() {
  2.   i++;
  3.   delay(500);
  4.   String tx_message = "Nr. of TX attempts: " + String(i);
  5.   int m_length = tx_message.length();
  6.   byte txbyte[m_length];
  7.   tx_message.getBytes(txbyte, m_length + 1);
  8.   Serial.println((char *)txbyte);
  9.   ELECHOUSE_cc1101.SendData(txbyte, m_length);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement