I am not sure what the problem is…maybe the IDE, most likely me though !!
The issue I am having is with a table in the agent that I am using to save parameters to the server so that these can be preserved through a power outage, much as shown in the http://electricimp.com/docs/resources/permanentstore/ article, with parameters being obtained using http, as shown in Micro Disco Light show example.
It was working upto a point with 3 defined integer values in the table, and then I tried to add a further key to the table, a string for email address and I got “Index xxx does not exist” when trying to send that parameter by http.
I thought maybe that you cannot mix integer and strings in a table, so I made the integers into strings so that all keys would be of the same type… that didn’t help.
I even cut and pasted existing code for one of the key values and renamed the variables to add another key to the same table, but that didn’t work either.
Is there possibly some problem with adding keys to a table after it has initially been defined, not in real time, but in subsequent builds?
I defined a fresh table in which to store just the email address, and that worked…of course, it doesn’t solve my problem as only one table can be preserved with server.save()/server.load() technique.
My only thought is to delete the table, and assign a new one with all the keys defined, rename the variables to suit, plus include a few spares for future expansion…