I Ilya G. Active Member Licensed User Longtime User Apr 18, 2017 #1 Hi, сan you give a simple example parse GET request. For example http://192.168.1.69/set/1/1 and http://192.168.1.69/get/1 I watched ESPConfigureWiFi but did not understand why so many For ... Why, can not separate a line just str() = bc.Split (Buffer, "/")?
Hi, сan you give a simple example parse GET request. For example http://192.168.1.69/set/1/1 and http://192.168.1.69/get/1 I watched ESPConfigureWiFi but did not understand why so many For ... Why, can not separate a line just str() = bc.Split (Buffer, "/")?
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2017 #2 Use rHttpUtils2: https://www.b4x.com/android/forum/threads/module-rhttputils2-http-client.74785/#content Upvote 0
Use rHttpUtils2: https://www.b4x.com/android/forum/threads/module-rhttputils2-http-client.74785/#content
I Ilya G. Active Member Licensed User Longtime User Apr 18, 2017 #3 I need to ESP be a server Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2017 #4 GanjaKyp said: Why, can not separate a line just str() = bc.Split (Buffer, "/")? Click to expand... Because the data is not arrived at once. It is worth going over this example: https://www.b4x.com/android/forum/threads/esp8266-ftp-client.74383/#content The only reason to implement a http server is if you need to access the server from a browser. Otherwise there are much simpler options. Upvote 0
GanjaKyp said: Why, can not separate a line just str() = bc.Split (Buffer, "/")? Click to expand... Because the data is not arrived at once. It is worth going over this example: https://www.b4x.com/android/forum/threads/esp8266-ftp-client.74383/#content The only reason to implement a http server is if you need to access the server from a browser. Otherwise there are much simpler options.
I Ilya G. Active Member Licensed User Longtime User Apr 24, 2017 #5 Erel said: Otherwise there are much simpler options. Click to expand... Can you give example? I want to send string 5:0 and 5:1, where 5 is rele number and 0,1 is state Upvote 0
Erel said: Otherwise there are much simpler options. Click to expand... Can you give example? I want to send string 5:0 and 5:1, where 5 is rele number and 0,1 is state
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2017 #6 What are you communicating with? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2017 #8 Are you using B4A to develop it? B4RSerializator + AsyncStreams in prefix mode is the simplest way: https://www.b4x.com/android/forum/t...ceive-objects-instead-of-bytes.72404/#content Upvote 0
Are you using B4A to develop it? B4RSerializator + AsyncStreams in prefix mode is the simplest way: https://www.b4x.com/android/forum/t...ceive-objects-instead-of-bytes.72404/#content