WebThingsIO / webthing-arduino

Simple server for ESP8266, ESP32, Ethernet, or WiFi101-compatible boards compliant with Mozilla's proposed WoT API
Mozilla Public License 2.0
207 stars 78 forks source link

Make API server port changeable #66

Closed clvs7-gh closed 5 years ago

clvs7-gh commented 5 years ago

This PR makes WebThing API server port changeable from hardcoded '80'.

Example:

// Default port is 80
adapter = new WebThingAdapter("human-sensor", WiFi.localIP())
// Now you can change port from 80 to any port you want
adapter = new WebThingAdapter("human-sensor", WiFi.localIP(), 8080)