Skip to content

Commit 3bebb7e

Browse files
committed
Fix redundant thing types
1 parent 7ec4c6c commit 3bebb7e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/PlatformIO/BME280/src/BME280.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
WebThingAdapter adapter("weathersensor");
4747

4848
const char* bme280Types[] = {nullptr};
49-
ThingDevice weather("bme280", "BME280 Weather Sensor", "thing", bme280Types);
49+
ThingDevice weather("bme280", "BME280 Weather Sensor", bme280Types);
5050
ThingProperty weatherTemp("temperature", "", NUMBER, nullptr);
5151
ThingProperty weatherHum("humidity", "", NUMBER, nullptr);
5252
ThingProperty weatherPres("pressure", "", NUMBER, nullptr);

examples/PlatformIO/TextDisplay/src/TextDisplay.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ const int height = 64;
5353

5454
WebThingAdapter adapter("textdisplayer");
5555

56-
const char* textDisplayTypes = {nullptr};
57-
ThingDevice textDisplay("textDisplay", "Text display", "textDisplay", textDisplayTypes);
56+
const char* textDisplayTypes[] = {"TextDisplay", nullptr};
57+
ThingDevice textDisplay("textDisplay", "Text display", textDisplayTypes);
5858
ThingProperty text("text", "", STRING, nullptr);
5959

6060
String lastText = "moz://a iot";

examples/TextDisplay/TextDisplay.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ const int height = 64;
5353

5454
WebThingAdapter adapter("textdisplayer");
5555

56-
const char* textDisplayTypes = {nullptr};
57-
ThingDevice textDisplay("textDisplay", "Text display", "textDisplay", textDisplayTypes);
56+
const char* textDisplayTypes[] = {"TextDisplay", nullptr};
57+
ThingDevice textDisplay("textDisplay", "Text display", textDisplayTypes);
5858
ThingProperty text("text", "", STRING, nullptr);
5959

6060
String lastText = "moz://a iot";

0 commit comments

Comments
 (0)