Did you connect with WebBLE on your iPhone, or did you just use Safari? If you just used Saafari I can pretty much guarantee you it didn't connect, which is why it's not working.
Just connecting with the IDE should not overwrite the existing code - however obviously if you clicked the upload button, it'd upload the new code over the old code - and since previous readings are stored in RAM they would be lost.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So you mean this example? https://www.espruino.com/Smart+Meter
Did you connect with WebBLE on your iPhone, or did you just use Safari? If you just used Saafari I can pretty much guarantee you it didn't connect, which is why it's not working.
Just connecting with the IDE should not overwrite the existing code - however obviously if you clicked the upload button, it'd upload the new code over the old code - and since previous readings are stored in RAM they would be lost.