Sending 3 int32 variables from server(EZ-BLE PROC module) to an iOS app | Cypress Semiconductor
Sending 3 int32 variables from server(EZ-BLE PROC module) to an iOS app
I am new to cypress and am very exited to make my first custom ble profile.
I need to send 3 datasets that i capture from three sensors attached to the ez-ble module.
What is the best profile i can setup:
>Do i need to put each variable to a separate service?
>Do i need to have one only service and get 3 charcteristics for it which are the sensors values?
>Is the CYBLE_EVT_GATTS_WRITE_REQ event triggered when i have "write" or "notify" property in the characteristic?
One other important thing:
I have a temperature stored in int32, when i try to write to the GATT database :
I noticed that tempsensorhandle.value.val is an *int8 which cannot store my int32 temperature although i have declared it in32 in the ble configuration interface. Do i need to get every 8bit of my 32 bit integer to store it there?