LOGGER  Logger
Data Logging using ESP8266
Macros | Functions
services.cpp File Reference
#include "services.h"
#include <arduino.h>
#include <user_interface.h>
#include <osapi.h>

Macros

#define servicesEdit   2
 version of this module
 

Functions

EXTERNDEF void dumpBoolean (Print *pPrint, bool value)
 
EXTERNDEF void dumpHEXnumber (Print *pPrint, uint32_t value)
 
EXTERNDEF long stringToLong (String s)
 
EXTERNDEF void dumpFixedPoint (Print *pPrint, int32_t number, uint8_t places)
 
EXTERNDEF void dumpHEXbytes (Print *pPrint, bool spaceBetween, uint8_t count, uint8_t *pBytes)
 
EXTERNDEF void servicesReboot ()
 Reboot the system.
 

Detailed Description

Service Routines

Function Documentation

EXTERNDEF void dumpBoolean ( Print *  pPrint,
bool  value 
)

Dump a boolean value

Parameters
pPrintwere to emit the result
valuevalue to dump
EXTERNDEF void dumpFixedPoint ( Print *  pPrint,
int32_t  number,
uint8_t  places 
)

Convert a fixed point number to a string

Parameters
pPrintwhere to send the result
numbervalue to convert
placesnumber of decimal places to emit
EXTERNDEF void dumpHEXbytes ( Print *  pPrint,
bool  spaceBetween,
uint8_t  count,
uint8_t *  pBytes 
)

Convert an array of bytes to series of HEX Numbers. Each number is displayed as two digits even if the high order digit is a zero.

Parameters
pPrintwhere to send the result
spaceBetweenput a space between each byte
countnumber of bytes to convert
pBytespointer to the array of bytes
EXTERNDEF void dumpHEXnumber ( Print *  pPrint,
uint32_t  value 
)

Dump a hex value in the form 0xfffffff

Parameters
pPrintwere to emit the result
valuevalue to dump
EXTERNDEF long stringToLong ( String  s)

Convert a string to a long

Parameters
sstring to convert
Returns
value of the number converted to a long integer