Axeda Corp
/
AxedaGo-ubloxC027
Axeda demo software for u-blox C027 (GSM)
AMMP/axSerializer.h@1:ff6d8adaf6b9, 2014-08-11 (annotated)
- Committer:
- AxedaCorp
- Date:
- Mon Aug 11 19:07:20 2014 +0000
- Revision:
- 1:ff6d8adaf6b9
- Parent:
- 0:a725e8eab383
Pointed to platform (prod)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AxedaCorp | 0:a725e8eab383 | 1 | /************************************************************************************/ |
AxedaCorp | 0:a725e8eab383 | 2 | /* axSerializer.c */ |
AxedaCorp | 0:a725e8eab383 | 3 | /* ©2013 Axeda Corporation */ |
AxedaCorp | 0:a725e8eab383 | 4 | /* */ |
AxedaCorp | 0:a725e8eab383 | 5 | /* Defines methods for transposing the data in domain objects into a serialized */ |
AxedaCorp | 0:a725e8eab383 | 6 | /* encoding for transmission to the Platform Endpoint. This is a platform independent*/ |
AxedaCorp | 0:a725e8eab383 | 7 | /* implementation that can be applied to any device that supports ANSI C. */ |
AxedaCorp | 0:a725e8eab383 | 8 | /* */ |
AxedaCorp | 0:a725e8eab383 | 9 | /************************************************************************************/ |
AxedaCorp | 0:a725e8eab383 | 10 | |
AxedaCorp | 0:a725e8eab383 | 11 | #ifndef AXSERIALIZER_H |
AxedaCorp | 0:a725e8eab383 | 12 | #define AXSERIALIZER_H |
AxedaCorp | 0:a725e8eab383 | 13 | |
AxedaCorp | 0:a725e8eab383 | 14 | #include "cJSON.h" |
AxedaCorp | 0:a725e8eab383 | 15 | #include "axTypes.h" |
AxedaCorp | 0:a725e8eab383 | 16 | #include "axConstants.h" |
AxedaCorp | 0:a725e8eab383 | 17 | |
AxedaCorp | 0:a725e8eab383 | 18 | extern int terse_enable; |
AxedaCorp | 0:a725e8eab383 | 19 | |
AxedaCorp | 0:a725e8eab383 | 20 | #ifdef __cplusplus |
AxedaCorp | 0:a725e8eab383 | 21 | extern "C" { |
AxedaCorp | 0:a725e8eab383 | 22 | #endif |
AxedaCorp | 0:a725e8eab383 | 23 | |
AxedaCorp | 0:a725e8eab383 | 24 | |
AxedaCorp | 0:a725e8eab383 | 25 | cJSON *dataSet2JSON(ax_dataSet *di[], int len, int terse_on); |
AxedaCorp | 0:a725e8eab383 | 26 | cJSON *getRegistrationJSON(ax_deviceID *device, int pingRate); |
AxedaCorp | 0:a725e8eab383 | 27 | cJSON *getPKGStatusJSON(int status, char *error, int priority, int time, int terse_on); |
AxedaCorp | 0:a725e8eab383 | 28 | cJSON *AlarmsToJSON(ax_alarm *alarms[], int len, int terse_on); |
AxedaCorp | 0:a725e8eab383 | 29 | cJSON *eventsToJSON(ax_event *events[], int len, int terse_on); |
AxedaCorp | 0:a725e8eab383 | 30 | cJSON *locationsToJSON(ax_location *locations[], int len, int terse_on); |
AxedaCorp | 0:a725e8eab383 | 31 | |
AxedaCorp | 0:a725e8eab383 | 32 | #ifdef __cplusplus |
AxedaCorp | 0:a725e8eab383 | 33 | } |
AxedaCorp | 0:a725e8eab383 | 34 | #endif |
AxedaCorp | 0:a725e8eab383 | 35 | |
AxedaCorp | 0:a725e8eab383 | 36 | #endif |
AxedaCorp | 0:a725e8eab383 | 37 |