|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
9 #ifndef _HELPERFUNCTIONS_h
10 #define _HELPERFUNCTIONS_h
13 #if defined(ARDUINO) && ARDUINO >= 100
19 #include <ESP8266WiFi.h>
43 char*
mac2str (
const uint8_t* mac,
char* extBuffer = NULL);
51 uint8_t*
str2mac (
const char* mac, uint8_t* values);
60 void initWiFi (uint8_t channel,
const char* networkName,
const char* networkKey = NULL, uint8_t role = 0);
83 bool isNumber (
const char* input,
size_t len);
char * mac2str(const uint8_t *mac, char *extBuffer=NULL)
Debug helper function that generates a string that represent a MAC address.
void initWiFi(uint8_t channel, const char *networkName, const char *networkKey=NULL, uint8_t role=0)
Initalizes WiFi interfaces on ESP8266 or ESP32.
uint32_t calculateCRC32(const uint8_t *data, size_t length)
Calculates CRC32 of a buffer.
char * printHexBuffer(const uint8_t *buffer, uint16_t len)
Debug helper function that generates a string that represent a buffer hexadecimal values.
uint8_t * str2mac(const char *mac, uint8_t *values)
Debug helper function that creates MAC address byte array from text representation.
bool isNumber(const char *input)
Checks if input string is numeric.
Auxiliary functions for debugging over Serial.