I have a Bluz DK that is sending a String to the Gateway using the following code:
tMessage = (String(unitNum) + " , veh: " + String(num)); byte bMessage[tMessage.length()]; tMessage.getBytes(bMessage, tMessage.length()+1); //make sure length +1 BLE.sendData(bMessage, tMessage.length()+1);
I know the String is being sent.
How do I read the string on the Gateway Photon side. I would appreciate any example code as my knowledge of C is minimal.