51 #define MIN(x,y) ((x) < (y) ? (x) : (y))
59 #define MAX(x,y) ((x) > (y) ? (x) : (y))
66 #define ALIGN_n(x, n) ((((uint32_t)x) + ((n)-1)) & ~((n)-1))
72 #define ALIGN_8(x) ALIGN_n(x, 8)
78 #define ALIGN_4(x) ALIGN_n(x, 4)
84 #define ARRAY_COUNT(x) (sizeof (x) / sizeof *(x))
93 #define WICONNECT_FAILED(result, func) ((int)(result = (func)) < (int)wiconnect::WICONNECT_SUCCESS)
100 #define WICONNECT_SUCCEEDED(result, func) ((result = (func)) == wiconnect::WICONNECT_SUCCESS)
107 #define WICONNECT_IS_PROCESSING(result, func) ((result = (func)) == wiconnect::WICONNECT_PROCESSING)
113 #define WICONNECT_MAX_CMD_SIZE 128
118 #define WICONNECT_MAX_VERSION_SIZE 96
123 #define WICONNECT_MAX_SOCKETS 8
128 #define WICONNECT_MAX_HOST_SIZE 64
133 #define WICONNECT_MAX_FILENAME_SIZE 96
138 #define WICONNECT_WAIT_FOREVER 0xFFFFFFFFUL
143 #define WICONNECT_NO_WAIT 0
148 #define WICONNECT_FIRMWARE_UPDATE_TIMEOUT 90000UL
154 #define SOCKET_ANY_PORT (uint16_t)0
159 #define SOCKET_INVALID_HANDLE ((uint8_t)0xFF)
284 NETWORK_SECURITY_OPEN,
285 NETWORK_SECURITY_WEP_PSK,
286 NETWORK_SECURITY_WPA_AES_PSK,
287 NETWORK_SECURITY_WPA_TKIP_PSK,
288 NETWORK_SECURITY_WPA2_AES_PSK,
289 NETWORK_SECURITY_WPA2_MIXED_PSK,
290 NETWORK_SECURITY_WPA2_TKIP_PSK,
291 NETWORK_SECURITY_UNKNOWN
439 const char *elementName;
443 const char *strValue;
494 class ReaderFuncCallback;
497 class ScanResultList;
498 class WiconnectSocket;
499 class WiconnectSerial;
503 class SocketIrqHandlerMap;
504 class WiconnectUdpServer;
505 class GhmMessageList;
Miscellaneous fixed length file.
uint8_t len
The length in bytes of the SSID raw data.
The specified security type is not supported by the network.
Conntected to network and have IP address.
Only pull controls from remote server.
Only push streams and controls to remote server.
NetworkSecurity
Network security type.
int8_t(* PinToGpioMapper)(Pin pin)
Function pointer for mapping from a host pin to a WiConnect Module GPIO.
Currently executing another command.
const char * contextType
A POST Request 'context-type' value.
Push and pull all streams and controls.
WiconnectResult
API Result code.
Haven't attempted to join.
goHACK.me stream or control value
Network MAC Address type.
HttpSocketType
HTTP Socket sub-type.
GhmMessageGetType
goHACK.me message GET type
Joining was aborted (via command)
Library processing current command.
Not connected to network.
char SsidStrBuffer[129]
Buffer to hold a SSID string.
The WiFi module's firmware is out-dated. See updateFirmware() to update the firmware.
Connected to network but don't have IP address.
GhmElementValueType
goHACK.me stream or control value type
Only GET the message data.
char MacAddressStrBuffer[18]
Buffer to hold a MAC address string.
HTTP HEAD Request socket type.
The network with the configured SSID was not found.
PinName Pin
Pin name on HOST.
The SSID has not be configured.
Command / parameter not supported.
The network requires a password and none has been set.
Background processing monitor is not available (i.e in use)
Library not processing any commands.
HTTP POST Request socket type.
HttpSocketType type
The type of HTTP connection.
Module returned error code.
FileFlags
File flags type.
NetworkSignalStrength
Network RSSI signal level.
File on internal module flash.
NetworkJoinResult
Network connection status.
GhmSyncType
goHACK.me sychronization type
Get the message body. This is JSON formatted.
HTTP GET Request socket type.
unsigned long TimerTimeout
Timeout type.
Failed to parse module response.
const char * certName
TLS certificate filename on module flash file system.
The pinToGpioMapper hasn't been set.
Successfully joined the network.
Command successfully completed.
Array of goHACK.me stream or control values.
NetworkStatus
Network connection status.
Failed to join the network.
WiConnect command help file.
Get entire message. This includes headers. Is JSON formatted.
char IpStrBuffer[18]
Buffer to hold an IP address string.
Struct for hold HTTP socket configuration.
Currently attempting to join.
No mapping found for given pin.
bool openOnly
Only open the connection, don't issue the request yet.
The file is not open for reading.
Internal upgrade application.