hello ,
i am trying to do a httpjob to a shelly 1 plus but it gives an error on the wjob.download.
Dim wjob As HttpJob
wjob.Initialize("",Me)
wjob.Download("http://192.168.2.60/rpc/Input.SetConfig?id=0&config={"name":"Input0"}) ' this line gives an error
Wait For (wjob) JobDone(wjob As HttpJob)
If wjob.Success Then
Dim JSON As JSONParser
Dim Map1 As Map
JSON.Initialize(wjob.GetString) 'Read the text from a file.
Map1 = JSON.NextObject
For i = 0 To Map1.Size - 1
'Log("Key: " & Map1.GetKeyAt(i))
Log("Value: " & Map1.GetValueAt(i))
Next
End If
can anyone give me a solution .
thank you in advance
i am trying to do a httpjob to a shelly 1 plus but it gives an error on the wjob.download.
Dim wjob As HttpJob
wjob.Initialize("",Me)
wjob.Download("http://192.168.2.60/rpc/Input.SetConfig?id=0&config={"name":"Input0"}) ' this line gives an error
Wait For (wjob) JobDone(wjob As HttpJob)
If wjob.Success Then
Dim JSON As JSONParser
Dim Map1 As Map
JSON.Initialize(wjob.GetString) 'Read the text from a file.
Map1 = JSON.NextObject
For i = 0 To Map1.Size - 1
'Log("Key: " & Map1.GetKeyAt(i))
Log("Value: " & Map1.GetValueAt(i))
Next
End If
can anyone give me a solution .
thank you in advance