Values in HTTP for multiple parameters

9 years 1 month ago #2284 by sensor_version
Hi, I have created multiple parameters to send data :
1.sensor.temperature
2.status.connection

How can I send data to this parameters ?
How the HTTP link should look like ?
I can see there is LOG created in EasyIoT.exe for first parameter sent from regular url.
INFO VirtualN15S0 Sensor.Temperature 42.00 -
192.168.1.2/Api/EasyIoT/Control/Module/Virtual/N15S0/ControlLevel/42.00

Not sure how to send value to second parameter :
This does not work.

192.168.1.2/Api/EasyIoT/Control/Module/Virtual/N15S0/ControlLevel/Sensor.Temperature=42.00&Status.Connection=1

Please suggest on how to send values to other parameters. Thanks.

Please Log in or Create an account to join the conversation.

9 years 1 month ago #2285 by piman
Don't know whether this will help but it's one way of doing it. iot-playground.com/forum/esp8266-arduino...in-an-http-post#2282

Please Log in or Create an account to join the conversation.

9 years 1 month ago #2286 by sensor_version
I hope the developer will respond or provide tutorial on how http url should be configured for multiple parameters.
Just went through the post you mentioned, no solution till now . :(

Please Log in or Create an account to join the conversation.

9 years 1 month ago - 9 years 1 month ago #2287 by piman
Yes I know the tutorials are a little bit lacking in detail as regards using multiple sensors on ESP 8266, from what I've been reading it really depends on what you are senseing and how you want to sense it Within the EasyIoT server, it supports All platforms that I know from Arduino IDE Lua Mqtt Http Api & Arduino/ESP.
I know using multiple connections In some cases is not practical depending on the protocol, but it's also understanding the protocol that you want to implement and whether it's suitable for the purpose you want to use it, i.e. I found Mqtt quite easy and straight forward for adding multiple sensors to a ESP 8266. But not very practical for Time critical sensing where you need the instant response.
The following user(s) said Thank You: sensor_version

Please Log in or Create an account to join the conversation.

9 years 1 month ago #2288 by sensor_version
Thanks Piman. I'm newbie and trying to play around with http since Im familiar with http. I will take a look on mqtt to check if it suits my purpose.
Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.240 seconds

Forum latest

  • No posts to display.