CoRE http local request help


(ppp) #1

Hi!
I’m a dummy :slight_smile: and i need help how to do a request to a local web server (arduino) in my local LAN with CoRE (v0.3.15f).

My simple arduino project (one relais on off) go ON with a request like that with a browser:
http://192.168.1.200/?on
and it goes OFF with:
http://192.168.1.200/?off
With a browser it works good.
With Alexa Helper all works good too (with an http request http://192.168.1.200/?on …).
I don’t know how to do the same with CoRE.

  • add a core piston
  • basic
  • if switch on
  • then make a web request
  • and now … i did some experiments with url, method, content type … without success.
    Thank you for help.
    PPP

#2

I think I played with this one time using GET, JSON, send $random variable. See if you get anything out of that.


#3

There’s a peer assistance thread just for core. Ask there and someone will be glad to help you. :sunglasses:


#4

How about making it a virtual switch first?