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

Commit 6614c87

Browse files
committed
Removed Transcriber example and added full Firething example.
1 parent fc1ca02 commit 6614c87

File tree

2 files changed

+39
-73
lines changed

2 files changed

+39
-73
lines changed

examples/FirebaseTranscriber_ESP8266/FirebaseTranscriber_ESP8266.ino

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//
2+
// Copyright 2016 Google Inc.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// FirethingDemo_ESP8266 is a sample that demos operation of the firething
18+
// portion of this library. This is a firmware for the esp that acts as
19+
// a bridge between pins on the esp and a firebase database. This includes
20+
// a captive configuration portal.
21+
22+
23+
#include <ESP8266WiFi.h>
24+
#include <Thing.h>
25+
26+
thing::FireThing fire_thing;
27+
28+
void setup() {
29+
Serial.begin(9600);
30+
Serial.println("Firething starting up...");
31+
fire_thing.SetDebugHandler([](const char* message) { Serial.println(message); });
32+
fire_thing.Setup();
33+
}
34+
35+
void loop() {
36+
Serial.println(".");
37+
fire_thing.Loop();
38+
delay(100);
39+
}

0 commit comments

Comments
 (0)