9static const uint16_t AM43_SERVICE_UUID = 0xFE50;
10static const uint16_t AM43_CHARACTERISTIC_UUID = 0xFE51;
13static const uint16_t AM43_TUYA_SERVICE_UUID = 0x1910;
14static const uint16_t AM43_TUYA_CHARACTERISTIC_UUID = 0x2b11;
21static const uint8_t CMD_GET_BATTERY_LEVEL = 0xA2;
22static const uint8_t CMD_GET_LIGHT_LEVEL = 0xAA;
23static const uint8_t CMD_GET_POSITION = 0xA7;
24static const uint8_t CMD_SEND_PIN = 0x17;
25static const uint8_t CMD_SET_STATE = 0x0A;
26static const uint8_t CMD_SET_POSITION = 0x0D;
27static const uint8_t CMD_NOTIFY_POSITION = 0xA1;
29static const uint8_t RESPONSE_ACK = 0x5A;
30static const uint8_t RESPONSE_NACK = 0xA5;
bool has_set_state_response()
bool has_set_position_response()
bool has_set_position_response_
bool has_set_state_response_
void decode(const uint8_t *data, uint16_t length)
Am43Packet * get_send_pin_request(uint16_t pin)
Am43Packet * get_set_position_request(uint8_t position)
Am43Packet * get_open_request()
Am43Packet * encode_(uint8_t command, uint8_t *data, uint8_t length)
Am43Packet * get_light_level_request()
Am43Packet * get_stop_request()
Am43Packet * get_position_request()
Am43Packet * get_battery_level_request()
Am43Packet * get_close_request()
Providing packet encoding functions for exchanging data with a remote host.