Implementation of Fitness Machine Control Point
Specification : Fitness Machine Service (0x1826)
FTMS.CtlPt(0x2AD9) write(7) Start or Resume a training session
------------------------------------------------------------------>
<------------------------------------------------------------------
FTMS.CtlPt(0x2AD9) write(0) Request Control: initiate the procedude to request the control
<------------------------------------------------------------------
Remarques:
indicate16 (0x8001) //renvoit 2 octets 0x80 and 0x01
3- The structure to indicate to the client is (in my opinion) the following:
{ OPCODE: uint8 //0x80 (cf specification p 50/78)
RESULTCODE: uint8 //0X01=SUCCESS
}
m_ControlPoint.setProperties(CHR_PROPS_NOTIFY |CHR_PROPS_WRITE |CHR_PROPS_INDICATE |CHR_PROPS_READ );
m_ControlPoint.setPermission(SECMODE_OPEN, SECMODE_OPEN);
m_ControlPoint.setWriteCallback(fctWriteCallback);
m_ControlPoint.setCccdWriteCallback(fctCCCdCallback); // Optionally capture CCCD updates ?????
m_ControlPoint.setFixedLen(2);