I'm a newbie to RFduino and trying a very simple device/host communication using the Gazelle stack.
The device is a RFD22301 stand-alone powered from a CR2032 battery, and the host is RFD22102/RFD22121 (USB) connected to the laptop.
#define ULP_TIME_OUT (SECONDS(1))
unsigned char counter = 0;
RFduinoGZLL.txPowerLevel = 0;
device_t role = DEVICE0;
(void)RFduinoGZLL.sendToHost((char *)&counter, sizeof(counter));
device_t role = HOST;
void RFduinoGZLL_onReceive(device_t device, int rssi, char *data, int len)
counter = (unsigned char)data;
The problem is that the callback function RFduinoGZLL_onReceive on the host is never called.
The device seems to be working when programmed via the RFD22121 (USB). Then it's detached from the programmer and connected to the battery.
Please give me some advise on testing and/or coding examples.
Best regards, Per
Note: I'm using Arduino 1.6.5 on a MacBook Air (OS X 10.9.5) and RFduino library version 2.3.1.