OmUtil.h

Introduction

Use the links in the table of contents to the left to access the documentation.



Functions

omIpToString(unsigned char)

ip to string

omIpToString(unsigned long, bool)

ip to string flip=true for ESP library IPAddress object.);

omStringToInt

string pointer to int, very forgiving results undefined for nonnumeric characters reads 0xAbCd hex also.

omTime

Represent a number of milliseconds as a duration string, good for "uptime" displays. 1d2h3m4s like. result is in a shared static char[], so use or copy soon.


omIpToString(unsigned char)


ip to string

const char *omIpToString(
    unsigned char ip[4]);  

omIpToString(unsigned long, bool)


ip to string flip=true for ESP library IPAddress object.);

const char *omIpToString(
    unsigned long ip,
    bool flip = false);  

omStringToInt


string pointer to int, very forgiving results undefined for nonnumeric characters reads 0xAbCd hex also.

int omStringToInt(
    const char *s);  

omTime


Represent a number of milliseconds as a duration string, good for "uptime" displays. 1d2h3m4s like. result is in a shared static char[], so use or copy soon.

const char *omTime(
    long long millis,
    int secondsDecimals = 0);