You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
robomaster-sdk/include/sdk_connection.h

28 lines
452 B
C

#pragma once
#include "message.h"
#include <stdbool.h>
#include <stdint.h>
static const uint8_t SET_SDK_CONNECTION_CMDID = 0xD4;
enum CONNECTION {
CONNECTION_WIFI_AP = 0,
CONNECTION_WIFI_STA = 1,
CONNECTION_USB_RNDIS = 2
};
void
set_sdk_connection(
Client session,
enum CONNECTION connection_type,
uint32_t ip_address,
uint16_t port );
static const uint8_t SDK_HEARTBEAT_CMDID = 0xD5;
void
sdk_heartbeat(
Client session );