- Code: Select all
TV = Net.FHttp("192.168.1.6",1925)
jsonString = {id="hdmi1"}
jsonTable = json.encode(jsonString)
response, status, errorCode = TV:POST("/1/sources/current?callback=", jsonTable )
Is there a guide for how to do this? If I just use curl and try to post the jsonString it gives back "bad argument".