Yikes!
I thought people had stopped replying but it seems my notification was disabled
So in response:
1. I've only ever used Debug and not Release (if this is what we are talking about).
2. I didn't realise that Debug code gets reset after you remove the battery.
3. My modules are not behaving as if #2 was true.
While I can rewrite the firmware on the modules or leave them with no battery for days they still do not behave as before once I put the battery back in as I have been unable to connect to them since I first started this thread.
I still have 1 module working (and one as yet unused). With the suggestions here my code on it as as follows (and seems to be working well):
Class DownstairsTemp
Shared Event CheckTemp() RaiseEvent Every 5 Minutes
Dim Timestamp As DateTime = DateTime.Now()
Dim Temp As Float = TempSensor.GetTemp()
Dim Payload As ListOfByte = New ListOfByte
Dim TempString As String = Timestamp.ToString("Z") + "," + Temp.ToString()
Payload.Add(TempString)
Lplan.Publish("mcThings/DownstairsTemp", Payload)
End Event
Shared Event CheckBatt() RaiseEvent Every 1 Hours
Dim Timestamp As DateTime = DateTime.Now()
Dim Volt As Short = Device.BatteryVoltage()
Dim Payload As ListOfByte = New ListOfByte
Dim TempString As String = Timestamp.ToString("Z") + "," + Volt.ToString()
Payload.Add(TempString)
Lplan.Publish("mcThings/DownstairsBatt", Payload)
End Event
End Class
I wanted to use module generated timestamps as if I generate them upon receipt sometimes they come in bulk and the timestamps become meaningless.
I've attached a pic of what the device and beacon windows look like. I can try connecting for thousands of second with nothing. The only one I can connect to is the 6A module.