Author Topic: Overload resolution failed  (Read 2359 times)

hnugter

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Overload resolution failed
« on: August 12, 2016, 03:12:25 am »
Hello,
Thanks for your help
I have changed the script but is does not seems to work.
I have put some breakpoints in the code and run it. When debug stopped at the line Dim temp As Float = TempSensor.GetTemp() the value stays ) (zero) and then the tempstring also contains nothing and as a result nothing is sent to IFTTT
Then at the end I get an runtime error. (see picture)

This is my script now.
It would be very helpful if I could started with a working script. From that point I can move on.

Regards
henk

Class temperatuur
    Shared Event GetTemp() RaiseEvent Every 1 Minutes
        LedGreen = True
       
        Dim temp As Float = TempSensor.GetTemp()
       
        Dim tempstring As String = temp.ToString()
       
        Lplan.IFTTT("d8cAVjNUjBr1S9aUB70Wvc", "Temperatuur", tempstring, "", "")
       
        If temp > 25.0 Then
            LedRed = True
        Else
            LedRed = False
        End If
       
        LedGreen = False
       
    End Event   
End Class

[ Guests cannot view attachments ]
« Last Edit: August 23, 2016, 12:23:42 pm by mc-T2 »