The profile service allows you to send and receive MsgPack formatted profiles to control motion detection, lighting setup, and the device name.
The profile service lets you send and receive configuration for motion, lighting, and effects to and from the Amp. Currently, there are five commands that you can utilize:
Retrieves configuration as binary MsgPack
Sends Amp profile as MsgPack (also the format that get:config returns config)
Sets the name of the Amp
Changes the effect for how a lighting region reacts to an action
Saves the effect for how a lighting region reacts to an action
When sending / receiving data to the amp, you must take into account the MTU. The data will be received or needs to be sent in packets of MTU - 3 bytes.
In both directions, a flow control characteristic is sent with the size of the data in bytes so that both the Amp and the client knows how much data is being sent (i.e. how many notifications to look for before parsing the data)