implemented MQTT connection to EMQX dev

This commit is contained in:
strawmanbobi
2024-01-11 13:00:45 +08:00
parent 34259c8023
commit f81a3f6b2e
15 changed files with 162 additions and 149 deletions

View File

@@ -21,8 +21,8 @@
* SOFTWARE.
*/
#ifndef IRBABY_IRIS_H
#define IRBABY_IRIS_H
#ifndef IRIS_KIT_IR_BABY_H
#define IRIS_KIT_IR_BABY_H
#define CREDENTIAL_MAX (40)
#define USER_NAME_MAX (64)
@@ -50,7 +50,7 @@ typedef struct {
int getIRISKitVersion(char *buffer, int buffer_size);
int getDeviceID(char* buffer, int buffer_size);
String getDeviceID();
int authIrisKitAccount(String credential_token,
String password,
@@ -65,4 +65,4 @@ void sendIrisKitHeartBeat();
void handleIrisKitMessage(const char* data, int length);
#endif // IRBABY_IRIS_H
#endif // IRIS_KIT_IR_BABY_H