-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 1998-felix <felix.gateru@gmail.com>
- Loading branch information
1 parent
ab2d352
commit 6907601
Showing
3 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
|
||
#ifndef MQTT_CLIENT_APP_H_ | ||
#define MQTT_CLIENT_APP_H_ | ||
|
||
#include <string.h> | ||
|
||
#include "MQTTClient.h" | ||
#include "MQTTInterface.h" | ||
#include "cmsis_os.h" | ||
#include "config.h" | ||
|
||
#include <string.h> | ||
|
||
#define MQTT_PORT 1883 | ||
#define MQTT_BUFSIZE 1024 | ||
#define MQTT_PORT 1883 | ||
#define MQTT_BUFSIZE 1024 | ||
|
||
Network net; | ||
MQTTClient mqttClient; | ||
Network net; | ||
MQTTClient mqttClient; | ||
|
||
uint8_t sndBuffer[MQTT_BUFSIZE]; | ||
uint8_t sndBuffer[MQTT_BUFSIZE]; | ||
uint8_t rcvBuffer[MQTT_BUFSIZE]; | ||
uint8_t msgBuffer[MQTT_BUFSIZE]; | ||
|
||
void mqttClientSubTask(void const *argument); | ||
void mqttClientPubTask(void const *argument); | ||
int mqttConnectBroker(void); | ||
void mqttMessageArrived(MessageData* msg); | ||
int mqttConnectBroker(void); | ||
void mqttMessageArrived(MessageData *msg); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters