//#include <string.h>
//#include <algorithm>
#include <stdlib.h>
#include "Utilities.h"
#include "Arduino.h"
int findChar(char* str, char targetChar)
{
for(int i = 0; str[i] != '\0'; i++) {
if(str[i] == targetChar) return i;
}
/*
int getPosition(const char *array, size_t size, char c)
const char* end = array + size;
const char* match = std::find(array, end, c);
return (end == match)? -1 : (match-array);
*/
void Utilities::PrintCharsAsHex(char* charArray, size_t length)
for(int i = 0; i < length; i++)
Serial.print((int)(charArray[i]), HEX);
Serial.print(" ");