Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit b93b820

Browse files
committed
fixed test
1 parent 061514a commit b93b820

File tree

3 files changed

+1
-49
lines changed

3 files changed

+1
-49
lines changed

test/travis/check_all_examples_use_standard_init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
FBASE_SNIPPET=test/travis/firebase_init.cc.snip
3-
FBASE_NOWIFI_SNIPPET=test/travis/firebase_no_wifi_init.cc.snip
3+
FBASE_NOWIFI_SNIPPET=test/travis/no_firebase_init.cc.snip
44
for example in `find examples/ -name *.ino`;
55
do
66
echo $example;

test/travis/firebase_arduino_init.cc.snip

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
11
// Set these to run example.
22
#define WIFI_SSID "SSID"
33
#define WIFI_PASSWORD "PASSWORD"
4-
5-
void ConnectWifi(const String& ssid, const String& password = "") {
6-
if (password != "") {
7-
WiFi.begin(ssid.c_str(), password.c_str());
8-
} else {
9-
WiFi.begin(ssid.c_str());
10-
}
11-
12-
Serial.print("connecting");
13-
while (WiFi.status() != WL_CONNECTED) {
14-
Serial.print(".");
15-
delay(500);
16-
}
17-
Serial.println();
18-
Serial.print("connected: ");
19-
Serial.println(WiFi.localIP());
20-
}
21-
22-
void setup() {
23-
Serial.begin(9600);
24-
ConnectWifi(WIFI_SSID, WIFI_PASSWORD);

0 commit comments

Comments
 (0)