Axeda Ready Demo for Freescale FRDM-KL46Z as accident alert system
Dependencies: FRDM_MMA8451Q KL46Z-USBHost MAG3110 SocketModem TSI mbed FATFileSystem
Fork of AxedaGo-Freescal_FRDM-KL46Z by
AMMPC/axSerializer.h
- Committer:
- AxedaCorp
- Date:
- 2014-07-02
- Revision:
- 2:2f9019c5a9fc
- Parent:
- 0:65004368569c
File content as of revision 2:2f9019c5a9fc:
/************************************************************************************/ /* axSerializer.c */ /* ©2013 Axeda Corporation */ /* */ /* Defines methods for transposing the data in domain objects into a serialized */ /* encoding for transmission to the Platform Endpoint. This is a platform independent*/ /* implementation that can be applied to any device that supports ANSI C. */ /* */ /************************************************************************************/ #ifndef AXSERIALIZER_H #define AXSERIALIZER_H #include "cJSON.h" #include "axTypes.h" #include "axConstants.h" extern int terse_enable; #ifdef __cplusplus extern "C" { #endif cJSON *dataSet2JSON(ax_dataSet *di[], int len, int terse_on); cJSON *getRegistrationJSON(ax_deviceID *device, int pingRate); cJSON *getPKGStatusJSON(int status, char *error, int priority, int time, int terse_on); cJSON *AlarmsToJSON(ax_alarm *alarms[], int len, int terse_on); cJSON *eventsToJSON(ax_event *events[], int len, int terse_on); cJSON *locationsToJSON(ax_location *locations[], int len, int terse_on); #ifdef __cplusplus } #endif #endif