8 years, 9 months ago.

Broadcasting sensor data over altbeacon

Good day.

I want to read some sensor data and broadcast it over an Altbeacon (or iBeacon).

Judging from the example, it seems that the data is set in the init phase and cannot be change while running.

void bleInitComplete(BLE::InitializationCompleteCallbackContext *params) { /* Initialize AltBeacon */ altBeaconServicePtr =new AltBeaconService(ble, manufacturerID, beaconID, rssi); /* Start advertising */ ble.startAdvertising(); }

int main(void) {

/* Initialize BLE baselayer */ ble.init(bleInitComplete);

while(true) { ble.waitForEvent(); /* Allow low power operation */ }

Is there a way to send custom data while the service is running? (I though of changeing the beaconID while running, but I'm open for better suggestions.

Thanks

Be the first to answer this question.