please, I can read JSON output from PHP on the web with ESP8266?
my first step is :
trying standard way as in B4J, but I see that it is not good way because of library...it strue?
B4X:
Sub Go
Dim req As HttpRequest
req.InitializeGet("http://xxxx.xxx/yyyy/zzzz.php?" & "id=" & id)
httpC.Execute(req,1)
End Sub
Sub httpC_ResponseSuccess (Response As HttpResponse, TaskId As Int)
If Taskid=1 then
'here I will work with JSON
Dim result As String
Dim JSON As JSONParser
Dim restOpen As Int
result = Response.GetString("UTF8")
End if
End Sub
Please for advice what is the best direction for working with PHP json output in ESP8266
Best regards
p4ppc
Sub JobDone (Job As JobResult)
Dim bc As ByteConverter
Log("Response: ", bc.SubString2(Job.Response, 0, Min(200, Job.Response.Length))) 'truncate to 200 characters
Dim jsontext() As Byte
jsontext()=bc.SubString2(Job.Response, 0, Min(200, Job.Response.Length))
this is wrong declaration I know,
but how can I solve the row: