Compiles, but fails to POST the json request.

Needs a better coder to read the code and work out why stats.cpp:82
onwards fails.
commented stuff out so there is only 1 variable
fixed fstr/esprintf code for linux