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

Go to the source code of this file.

Macros

#define servicesHedit   2
 version of this include file
 

Functions

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

Detailed Description

Service Routines

Function Documentation

void dumpBoolean ( Print *  pPrint,
bool  value 
)

Dump a boolean value

Parameters
pPrintwere to emit the result
valuevalue to dump
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
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
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