Add Set SDK Mode message
This commit is contained in:
@@ -66,6 +66,14 @@ set_sdk_connection_req_new(
|
||||
return message_new(session, 0x3F, SET_SDK_CONNECTION_CMDID, sizeof(msg), &msg);
|
||||
}
|
||||
|
||||
const Message
|
||||
set_sdk_mode_req_new(
|
||||
Client session,
|
||||
bool enable ) {
|
||||
const struct SetSdkModeReq msg = { enable };
|
||||
return message_new(session, 0x3F, SET_SDK_MODE_CMDID, sizeof(msg), &msg);
|
||||
}
|
||||
|
||||
const Message
|
||||
set_system_led_req_new (
|
||||
Client session,
|
||||
|
||||
+15
-1
@@ -115,7 +115,7 @@ enum CONNECTION {
|
||||
CONNECTION_WIFI_AP = 0,
|
||||
CONNECTION_WIFI_STA = 1,
|
||||
CONNECTION_USB_RNDIS = 2
|
||||
}
|
||||
};
|
||||
|
||||
struct PACKED SetSdkConnectionReq {
|
||||
uint8_t control;
|
||||
@@ -138,6 +138,20 @@ const Message set_sdk_connection_req_new(
|
||||
uint32_t ip_address,
|
||||
uint16_t port );
|
||||
|
||||
static const uint8_t SET_SDK_MODE_CMDID = 0xd1;
|
||||
|
||||
struct PACKED SetSdkModeReq {
|
||||
uint8_t enable;
|
||||
};
|
||||
|
||||
struct PACKED SetSdkModeResp {
|
||||
uint8_t retcode;
|
||||
};
|
||||
|
||||
const Message set_sdk_mode_req_new(
|
||||
Client session,
|
||||
bool enable );
|
||||
|
||||
static const uint8_t GET_VERSION_CMDID = 0x01;
|
||||
|
||||
// NOTE: No GetVersion request body
|
||||
|
||||
Reference in New Issue
Block a user