MegaWiFi command message definitions.
More...
|
typedef union mw_cmd | mw_cmd |
| Command sent to system FSM.
|
|
MegaWiFi command message definitions.
Contains the definition of the command codes and the data structures conforming the command message queries and responses. Usually this module is not directly used by the application, but by megawifi internally.
- Author
- Jesus Alonso (doragasu)
- Date
- 2015~2019
◆ MW_CMD_HEADLEN
#define MW_CMD_HEADLEN (2 * sizeof(uint16_t)) |
Command header length (command code and data length fields).
Definition at line 27 of file mw-msg.h.
◆ MW_CMD_MAX_BUFLEN
Maximum data length contained inside command buffer.
Definition at line 30 of file mw-msg.h.
◆ MW_GT_AVATAR_HEIGHT
#define MW_GT_AVATAR_HEIGHT 48 |
Gamertag avatar graphick height in pixels.
Definition at line 46 of file mw-msg.h.
◆ MW_GT_AVATAR_WIDTH
#define MW_GT_AVATAR_WIDTH 32 |
Gamertag avatar graphick width in pixels.
Definition at line 44 of file mw-msg.h.
◆ MW_GT_NICKNAME_MAX
#define MW_GT_NICKNAME_MAX 32 |
Gamertag nickname maximum length.
Definition at line 38 of file mw-msg.h.
◆ MW_GT_SECURITY_MAX
#define MW_GT_SECURITY_MAX 32 |
Gamertag security maximum length.
Definition at line 40 of file mw-msg.h.
◆ MW_GT_TAGLINE_MAX
#define MW_GT_TAGLINE_MAX 32 |
Gamertag tagline maximum length.
Definition at line 42 of file mw-msg.h.
◆ MW_GT_TG_TOKEN_MAX
#define MW_GT_TG_TOKEN_MAX 64 |
Telegram token maximum length.
Definition at line 48 of file mw-msg.h.
◆ MW_MSG_MAX_BUFLEN
#define MW_MSG_MAX_BUFLEN 512 |
Maximum buffer length (bytes)
Definition at line 24 of file mw-msg.h.
◆ MW_PASS_MAXLEN
#define MW_PASS_MAXLEN 64 |
Maximum password length (including '\0').
Definition at line 35 of file mw-msg.h.
◆ MW_SSID_MAXLEN
#define MW_SSID_MAXLEN 32 |
Maximum SSID length (including '\0').
Definition at line 33 of file mw-msg.h.
◆ mw_sock_stat
Socket status.
Enumerator |
---|
MW_SOCK_NONE | Unused socket.
|
MW_SOCK_TCP_LISTEN | Socket bound and listening.
|
MW_SOCK_TCP_EST | TCP socket, connection established.
|
MW_SOCK_UDP_READY | UDP socket ready for sending/receiving.
|
Definition at line 264 of file mw-msg.h.
◆ mw_state
MwState Possible states of the system state machine.
Enumerator |
---|
MW_ST_INIT | Initialization state.
|
MW_ST_IDLE | Idle state, until connected to an AP.
|
MW_ST_AP_JOIN | Trying to join an access point.
|
MW_ST_SCAN | Scanning access points.
|
MW_ST_READY | Connected to The Internet.
|
MW_ST_TRANSPARENT | Transparent communication state.
|
MW_ST_MAX | Limit number for state machine.
|
Definition at line 253 of file mw-msg.h.
◆ mw_command
Supported commands.
Definition at line 51 of file mw-msg.h.
◆ mw_phy_type
WiFi PHY configuration for the connection to the AP.
Definition at line 125 of file mw-msg.h.
◆ mw_security
Supported security protocols.
Definition at line 115 of file mw-msg.h.