436-0100-01-10, Rev. 200 Duo User Guide
Information on this page is subject to change without notice
Appendix C – TCP/IP Implementation
Data type definition
Integer: int8_t, int16_t, int32_t, int64_t
Positive integers: uint8_t, uint16_t, uint32_t, uint64_t
Number of bytes ( 0 ~ 255 ): uchar
Date format string ( 20 17 - 01 - 01 ), Beijing time : string
Time format string ( 0 1 : 0 1 : 01 ), time in Beijing : string
Date / time format string ( 20 17 - 01 - 01 0 1 : 0 1 : 01 ) , Beijing time: string
Boolean type ( 0 , 1 ): bool / b oolean
IP address format string ( 192.168.2.208 ): string
Instruction Format
CSP uses the request / response mode. The request consists of a message header + message body.
ID : default is 0x64
Status code : response status, request message can ignore the field. Is 0 for success, other representations error number
Instruction Number : Each instruction has a unique number
Instruction length : the length of the instruction body. If there is no instruction body, the length value is 0