31 #include "Wiconnect.h"
33 #include "api/types/WiconnectSocket.h"
34 #include "api/types/GhmMessageList.h"
45 #define GHM_ADD_INT(array, name, integerVal) \
47 array.elementName = name; \
48 array.type = GHM_VALUE_INT; \
49 array.u.intValue = (uint32_t)integerVal; \
57 #define GHM_ADD_STR(array, name, stringVal) \
59 array.elementName = name; \
60 array.type = GHM_VALUE_STR; \
61 array.u.strValue = (const char*)stringVal; \
WiconnectResult ghmDeactivate(const char *userName, const char *password)
Deactivate WiFi module with http://goHACK.me.
WiconnectResult ghmListMessages(GhmMessageList &msgList, uint8_t maxCount=0)
List available messages for device on http://goHACK.me.
Push and pull all streams and controls.
WiconnectResult
API Result code.
WiconnectResult ghmIsActivated(bool *statusPtr)
Return if WiFi module is activated with http://goHACK.me.
WiconnectResult ghmDeleteMessage(uint8_t listIndex)
Delete message from http://goHACK.me.
WiconnectResult ghmWrite(const char *elementName, const char *strValue)
Write stream or control data to http://goHACK.me.
WiconnectResult ghmPostMessage(WiconnectSocket &socket, bool jsonFormatted=false)
POST message to http://goHACK.me.
GhmMessageGetType
goHACK.me message GET type
List of goHACK.me messages.
The provides an interface for http://goHACK.me.
Only GET the message data.
GhmSyncType
goHACK.me sychronization type
WiconnectResult ghmActivate(const char *userName, const char *password, const char *capsFilename=NULL)
Activate WiFi module with http://goHACK.me.
WiconnectResult ghmDownloadCapabilities(const char *capsNameOrCustomUrl=NULL, uint32_t version=0)
Download a device capabilities file to WiFi module's internal file system.
WiconnectResult ghmRead(const char *controlName, const char **valueStrPtr)
Read control data from http://goHACK.me.
Connection object to remote server.
WiconnectResult ghmSynchronize(GhmSyncType type=GHM_SYNC_ALL)
Synchronize WiFi module with http://goHACK.me.
WiconnectResult ghmGetMessage(WiconnectSocket &socket, GhmMessageGetType getType=GHM_MSG_GET_DATA_ONLY)
GET message from http://goHACK.me.
The root WiConnect library class. This class inheriets all WiConnect functionality.
Array of goHACK.me stream or control values.