uint32_t getAntiWindup(int fd, uint8_t nodeId) { ZO_PROTOCOL_PACKET p; p.addressedNodeID = nodeId; p.ownNodeID = 0x01; p.commandID = 0x74; p.byteCount = 0x00; p.lrc = 0x74; if( putPacketSerial(fd, &p) ) { if( getResponse(fd, &p) ) return strToU32(p.data); else return -1; } else return -1; }
uint32_t zoSms::getProfileConstantVelocity(uint8_t nodeId) { ZO_PROTOCOL_PACKET p; p.addressedNodeID = nodeId; p.ownNodeID = 1; p.commandID = 0x68; p.byteCount = 0; p.lrc = 0x68; if( ha.putPacket(&p) ) { if( getResponse(&p) ) return strToU32(p.data); else return -1; } else return -1; }