http command

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
nmcsantos
New user
Posts: 5
Joined: 12 Feb 2016, 20:22

http command

#1 Post by nmcsantos » 12 Feb 2016, 20:32

Is there a list with the http commands and syntax that esp easy accepts?

for example: http://<ESP IP address>/control?cmd=pulse,<gpio>,<state>,<duration>

User avatar
costo
Normal user
Posts: 504
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: http command

#2 Post by costo » 13 Feb 2016, 12:09

nmcsantos wrote:Is there a list with the http commands and syntax that esp easy accepts?

for example: http://<ESP IP address>/control?cmd=pulse,<gpio>,<state>,<duration>

http://www.esp8266.nu/index.php/Main_Page

Click on the name of a device and you are directed to the page for that special device where, if applicable, the http commands are listed and explained.

No use for a shortlist of all the different http commands in ESPEasy because different device's can have different special commands.

nmcsantos
New user
Posts: 5
Joined: 12 Feb 2016, 20:22

Re: http command

#3 Post by nmcsantos » 13 Feb 2016, 23:14

costo wrote:
nmcsantos wrote:Is there a list with the http commands and syntax that esp easy accepts?

for example: http://<ESP IP address>/control?cmd=pulse,<gpio>,<state>,<duration>

http://www.esp8266.nu/index.php/Main_Page

Click on the name of a device and you are directed to the page for that special device where, if applicable, the http commands are listed and explained.

No use for a shortlist of all the different http commands in ESPEasy because different device's can have different special commands.
Thank you for your repply.

I had alredy read this topic, and i as searching specially http commands that can control outputs. I did find the pulse command i na topic. There are others?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: http command

#4 Post by tozett » 14 Feb 2016, 16:18

im am no developer, think the question must be answered by the devs.
the wiki is a little short on this,
as far as i understand the source-code,

Code: Select all

if (Plugin_ptr[x](Function, event, str))
                  return true;
each possible-commands come individually from each plugin.

for example, in the switch-plugin i see something like

Code: Select all

if (tmpString.equalsIgnoreCase("PWM"))
https://github.com/ESP8266nu/ESPEasy/bl ... Switch.ino

so there is a PWM command... and so forth..

some example in the wiki here:
http://www.esp8266.nu/index.php/GPIO

if there is no easy dokumentation on the wiki, one has to search each plugin-source to collect possible commands.
may the devs correct me ...
:oops:

nmcsantos
New user
Posts: 5
Joined: 12 Feb 2016, 20:22

Re: http command

#5 Post by nmcsantos » 15 Feb 2016, 00:55

tozett wrote:im am no developer, think the question must be answered by the devs.
the wiki is a little short on this,
as far as i understand the source-code,

Code: Select all

if (Plugin_ptr[x](Function, event, str))
                  return true;
each possible-commands come individually from each plugin.

for example, in the switch-plugin i see something like

Code: Select all

if (tmpString.equalsIgnoreCase("PWM"))
https://github.com/ESP8266nu/ESPEasy/bl ... Switch.ino

so there is a PWM command... and so forth..

some example in the wiki here:
http://www.esp8266.nu/index.php/GPIO

if there is no easy dokumentation on the wiki, one has to search each plugin-source to collect possible commands.
may the devs correct me ...
:oops:
Thank you for iluminating me. :D

I just started investigating arduino and stuffs 1 month ago. For that, it is a little dificult to read the pluggin files.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: http command

#6 Post by tozett » 15 Feb 2016, 08:17

found this, where it says that control via MQTT is somehow limited..
http://www.esp8266.nu/forum/viewtopic.p ... 3601#p3601
:|

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 14 guests