Hi,
I am trying a different way to send the request to my webpage by using httpjob module.
But unfortunately I am able to connect wifi [nodemcu] but still NOT able to send request to mypage.com
A simple code I am running....
Any mistake I am doing? I hv ran the example from Erel.. There is also not working
I am trying a different way to send the request to my webpage by using httpjob module.
But unfortunately I am able to connect wifi [nodemcu] but still NOT able to send request to mypage.com
A simple code I am running....
B4X:
#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Dim wifi As ESP8266WiFi
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
wifi.Connect2("MADHU","xxxx")
Log("Connected Router")
HttpJob.Initialize("Sendtestrequest")
HttpJob.Download("www.mypage.com/addTemperature.php?temperature=13.7&humidity=16.7") <----This is for GET request
End Sub
Sub JobDone (Job As JobResult)
If Job.Success Then
Log("JobStatus :",Job.Status)
Log(Job.Response)
End If
End Sub