Author Topic: Current time in HH:MM:SS  (Read 1286 times)


  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Current time in HH:MM:SS
« on: July 24, 2016, 02:08:40 am »
I tried this:

Code: [Select]
Class Test
    Shared Event generateTimestamp() RaiseEvent Every 1 Minutes
        Dim dat As DateTime = DateTime.Now()
        Dim payload As ListOfByte = New ListOfByte
        Dim timestamp As String = dat.ToString("HH':'mm':'ss")
        Lplan.Publish("mcThings/Test", payload)
    End Event
End Class

But I feel I may have bricked multiple modules with it as I can no longer connect to them after uploading this code :( Is there a way to clear the program without connecting to the module via the gateway?