Skip to content

Commit

Permalink
renamed XDK_MQTT_Z.h to MQTTClient.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Mar 23, 2020
1 parent a989ac5 commit 0ddf9b1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion source/AppController.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "Serval_Ip.h"
#include "XDK_Utils.h"
#include "XDK_WLAN.h"
#include "XDK_MQTT_Z.h"
#include "XDK_Sensor.h"
#include "XDK_SNTP.h"
#include "XDK_ServalPAL.h"
Expand All @@ -46,6 +45,7 @@
#include "timers.h"
#include "Serval_Ip.h"
#include "BatteryMonitor.h"
#include "MQTTClient.h"
#include "MQTTStorage.h"
#include "MQTTCfgParser.h"
#include "MQTTRegistration.h"
Expand Down
6 changes: 3 additions & 3 deletions source/XDK_MQTT_Z.c → source/MQTTClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**
*******************************************************************************
**
** OBJECT NAME: XDK_MQTT_Z.c
** OBJECT NAME: MQTTClient.c
**
** DESCRIPTION: Source Code for the Cumulocity MQTT Client for the Bosch XDK
**
Expand All @@ -30,8 +30,8 @@
#define BCDS_MODULE_ID XDK_COMMON_ID_MQTT

#if XDK_CONNECTIVITY_MQTT
/* own header files */
#include "XDK_MQTT_Z.h"

#include "MQTTClient.h"

/* system header files */
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion source/XDK_MQTT_Z.h → source/MQTTClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**
*******************************************************************************
**
** OBJECT NAME: XDK_MQTT_Z.h
** OBJECT NAME: MQTTClient.h
**
** DESCRIPTION: Source Code for the Cumulocity MQTT Client for the Bosch XDK
**
Expand Down
19 changes: 10 additions & 9 deletions source/MQTTOperation.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,13 +758,12 @@ static void MQTTOperation_AssetUpdate(xTimerHandle xTimer) {
MQTTCfgParser_GetFirmwareName(),
MQTTCfgParser_GetFirmwareVersion(),
MQTTCfgParser_GetFirmwareURL());
assetStreamBuffer.length +=
snprintf(
assetStreamBuffer.data
+ assetStreamBuffer.length,
sizeof(assetStreamBuffer.data)
- assetStreamBuffer.length,
"400,xdk_FirmwareChangeEvent,\"Firmware updated!\"\r\n");
assetStreamBuffer.length += snprintf(
assetStreamBuffer.data
+ assetStreamBuffer.length,
sizeof(assetStreamBuffer.data)
- assetStreamBuffer.length,
"400,xdk_FirmwareChangeEvent,\"Firmware updated!\"\r\n");
break;
case CMD_PUBLISH_START:
assetStreamBuffer.length += snprintf(
Expand Down Expand Up @@ -891,7 +890,10 @@ static void MQTTOperation_AssetUpdate(xTimerHandle xTimer) {
//UBaseType_t stackHighWaterMark = 0;
UBaseType_t stackHighWaterMarkApp = uxTaskGetStackHighWaterMark(AppControllerHandle);
UBaseType_t stackHighWaterMarkMain = uxTaskGetStackHighWaterMark(MainCmdProcessor.task);
printf("MQTTOperation_SensorUpdate: Memory stat: everFreeHeap:[%lu], freeHeap:[%lu], stackHighWaterMarkApp:[%lu],stackHighWaterMarkMain:[%lu]\r\n", everFreeHeap, freeHeap, stackHighWaterMarkApp, stackHighWaterMarkMain);
UBaseType_t numberOfTasks = uxTaskGetNumberOfTasks();
printf("MQTTOperation_SensorUpdate: Memory stat: everFreeHeap:[%lu], freeHeap:[%lu], stackHighWaterMarkApp:[%lu],stackHighWaterMarkMain:[%lu], numberOfTasks[%lu]\r\n",
everFreeHeap, freeHeap, stackHighWaterMarkApp, stackHighWaterMarkMain, numberOfTasks);

#endif

}
Expand Down Expand Up @@ -962,7 +964,6 @@ static void MQTTOperation_SensorUpdate(xTimerHandle xTimer) {
sensorValue.Gyro.X, sensorValue.Gyro.Y, sensorValue.Gyro.Z);
}
if (SensorSetup.Enable.Mag) {

sensorStreamBuffer.length += snprintf(
sensorStreamBuffer.data + sensorStreamBuffer.length,
sizeof(sensorStreamBuffer.data) - sensorStreamBuffer.length,
Expand Down
2 changes: 1 addition & 1 deletion source/MQTTOperation.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
**
**
*******************************************************************************/
#include "XDK_MQTT_Z.h"
#include "XDK_MQTT.h"
#include "XDK_Sensor.h"
#include "MQTTClient.h"

/* header definition ******************************************************** */
#ifndef _MQTT_OPERATION_H_
Expand Down
2 changes: 1 addition & 1 deletion source/MQTTRegistration.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
**
*******************************************************************************/

#include "XDK_MQTT_Z.h"
#include "MQTTClient.h"

/* header definition ******************************************************** */
#ifndef MQTTREGISTRATION_H_
Expand Down

0 comments on commit 0ddf9b1

Please sign in to comment.