It doesn't work that way.
Mango is replacing the timestamp with the server one as if there were no timestamp in the POST.
When publisher sends data out it looks like the timestamp is like "123245654.1123" with a decimal point (I see that on the
This is what I do in the Gateway :
Format the number of seconds since Epoch, adding 3 x '0' at the end. :
snprintf(WorkBuffer, sizeof(WorkBuffer), "%ld000;", ModbusTimestamp);
This the resulting POST contents :
POST /httpds HTTP/1.1
HOST: mangolocal.pgpsmartsensing.be
Content-Type: application/x-www-form-urlencoded
Content-Length: 438
__device=PGP_001EC01EF773&__time=1441120275000&__meter=14100021&VoltagePhA=234.200&VoltagePhB=0.000&VoltagePhC=0.000&Frequency=50.010&WattPhA=1.720&WattPhB=0.000&WattPhC=0.000&FactorTotal=0.980&FactorPhA=0.980&FactorPhB=0.000&FactorPhC=0.000&IndexConsoTf1=29.840&IndexConsoTf2=0.000&IndexConsoPhA=29.840&IndexConsoPhB=0.000&IndexConsoPhC=0.000&IndexProdTf1=0.890&IndexProdTf2=0.000&IndexProdPhA=0.890&IndexProdPhB=0.000&IndexProdPhC=0.000
This is what is decoded by Mango :
Source: 81.243.242.216
Device ID: PGP_001EC01EF773
Time: 1441/12/15
FactorPhB=0.000
FactorPhA=0.980
FactorTotal=0.980
FactorPhC=0.000
WattPhC=0.000
WattPhB=0.000
VoltagePhA=234.500
IndexConsoTf1=29.960
IndexConsoTf2=0.000
VoltagePhC=0.000
VoltagePhB=0.000
WattPhA=1.740
IndexConsoPhC=0.000
IndexConsoPhB=0.000
IndexConsoPhA=29.960
__meter=14100021
IndexProdPhC=0.000
IndexProdTf2=0.000
IndexProdPhB=0.000