added upstream MQTT messages

This commit is contained in:
strawmanbobi
2022-03-13 20:04:04 +08:00
parent d815f4ad94
commit 74e9328092
5 changed files with 66 additions and 12 deletions

View File

@@ -33,6 +33,10 @@
#define DOWNLOAD_SUFFIX ".bin"
// IRIS communication
#define EVENT_NAME_CONNECT "__connect"
#define EVENT_HEART_BEAT_REQ "__hb_request"
int getIRISKitVersion(char *buffer, int buffer_size);
int getDeviceID(char* buffer, int buffer_size);
@@ -40,7 +44,8 @@ int getDeviceID(char* buffer, int buffer_size);
int fetchIrisCredential(String credential_token,
String& product_key,
String& device_name,
String& device_secret);
String& device_secret,
int& app_id);
void sendIrisKitConnect();