Author Topic: OnReceive Function with GZLL Protocol  (Read 481 times)

carb123

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
OnReceive Function with GZLL Protocol
« on: July 21, 2016, 10:26:18 AM »
So the function parameters for RFduinoGZLL_onReceive stores the data in a variable, meaning 1 byte

Code: [Select]
void RFduinoGZLL_onReceive(device_t device, int rssi, char *data, int len)

Can I change the variable from char to say something like int16_t, because I want to send two bytes at a time and not have to constantly union two individual bytes

Code: [Select]
void RFduinoGZLL_onReceive(device_t device, int rssi, int16_t *data, int len)

 

anything