In the payload section of the iBeacon data, we are using our custom data format, which includes information such as a button, battery, accelerometer, etc. Is there any way to parse the custom data to a Google Protocol Buffers format and send it via Websocket?
So basically, I'm trying to find a way to upload an application inside the AP, a way to channel the raw payload to this application and parse our custom data to proto-encoded bytes.
Example IBeacon Data from the BLE Forwarding:
message BleData {
// Advertisement address of the sender
optional bytes mac = 1;
// Frame Type
optional BleFrameType frameType = 2;
/* Instead of a raw payload, there will be our .proto format such as CustomPacket data = 3
that will include our parsed custom data format. */
optional bytes data = 3;
// signal strength in dBm
optional sint32 rssi = 4;
// Mac Address Type
optional MacAddrType addrType = 5;
// APB mac address
optional bytes apbMac = 6;
}
------------------------------
Thanks.
------------------------------