Hello,
I´m calling a function in lua to get some data via ubus. I need to show this info in a web. The table this method returns is the following. The problem is lua is just getting some of the data, not all. I can´t get the float values. When I iterate the table c_r, c_s, c_t and soc don´t exists.
I don't know how to fix this. I've tried to change the value format of c_s, c_r and c_t to integer and it works fine, but I need them to be floats.
Thanks in advance,
I´m calling a function in lua to get some data via ubus. I need to show this info in a web. The table this method returns is the following. The problem is lua is just getting some of the data, not all. I can´t get the float values. When I iterate the table c_r, c_s, c_t and soc don´t exists.
Code:
"socket1": {
"state": "charging",
"energy": 2544,
"power": 1766,
"soc": 0.000000,
"c_r": 8.079000,
"c_s": 0.000000,
"c_t": 0.000000,
"energy_limit": 0
},
Thanks in advance,
Last edited by a moderator: