17.06.2023, 13:48
(14.06.2023, 07:02)admin Wrote: Try this for multiple inverters. The order of the returned data might not be constant. So you might have to check the serial number (sn field) invert_full_1 and invert_full_2 tables to distinguish to which inverter the data belongs to.
Code:invert_full_1 = response.data.inverter[1].invert_full
log(invert_full_1)
invert_full_2 = response.data.inverter[2].invert_full
log(invert_full_2)
I works perfect! Thank you very much.
But, now, I have the error: attempt to concatenate field 'api' (a nil value) stack traceback. The line with causes the error is:
Code:
url = response.api .. "/v2/PowerStation/GetMonitorDetailByPowerstationId"
A couple of days ago, I didn't have this error. I tried several thing, but I can't find what is causing the error. Can you help?