mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Verify sketches as part of travis build
Squashed commits: [7d1b42f] Encrypt token, skip some tests [17b8f39] Fix sha1 example path [f3050b1] Fix build, add webhook [fd2c9bd] Fix build errors, update mDNS library readme [7b87031] Make common.sh more flexible [3ba3eb2] Test all sketches [87beb8a] Build all sketches in esp8266 core [f2464f1] Fix paths [823a9ae] Remove sudo usage [7fce734] Fix arduino commands [619bc7d] Move all commands into travis script [15a5ada] First attempt test runner
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <WiFiUDP.h>
|
||||
#include <ESP8266WebServer.h>
|
||||
#include <ESP8266SSDP.h>
|
||||
|
||||
@ -12,11 +11,11 @@ void setup() {
|
||||
Serial.begin(115200);
|
||||
Serial.println();
|
||||
Serial.println("Starting WiFi...");
|
||||
|
||||
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.begin(ssid, password);
|
||||
if(WiFi.waitForConnectResult() == WL_CONNECTED){
|
||||
|
||||
|
||||
Serial.printf("Starting HTTP...\n");
|
||||
HTTP.on("/index.html", HTTP_GET, [](){
|
||||
HTTP.send(200, "text/plain", "Hello World!");
|
||||
@ -25,7 +24,7 @@ void setup() {
|
||||
SSDP.schema(HTTP.client());
|
||||
});
|
||||
HTTP.begin();
|
||||
|
||||
|
||||
Serial.printf("Starting SSDP...\n");
|
||||
SSDP.setSchemaURL("description.xml");
|
||||
SSDP.setHTTPPort(80);
|
||||
@ -38,7 +37,7 @@ void setup() {
|
||||
SSDP.setManufacturer("Royal Philips Electronics");
|
||||
SSDP.setManufacturerURL("http://www.philips.com");
|
||||
SSDP.begin();
|
||||
|
||||
|
||||
Serial.printf("Ready!\n");
|
||||
} else {
|
||||
Serial.printf("WiFi Failed\n");
|
||||
|
Reference in New Issue
Block a user