Skip to content

Commit

Permalink
consistant "GDoor" casing
Browse files Browse the repository at this point in the history
  • Loading branch information
jschroeter committed Jun 8, 2024
1 parent 3b9bac2 commit 14c13ad
Show file tree
Hide file tree
Showing 19 changed files with 62 additions and 47 deletions.
8 changes: 4 additions & 4 deletions firmware/esp32/gdoor/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -62,7 +62,7 @@ void output(GDOOR_DATA_PROTOCOL &busmessage, const char* topic, bool force=false
void setup() {
Serial.begin(115200);
Serial.setTimeout(1);
JSONDEBUG("GDOOR Setup start");
JSONDEBUG("GDoor Setup start");

WIFI_HELPER::setup();
MQTT_HELPER::setup(WIFI_HELPER::mqtt_server(),
Expand All @@ -78,7 +78,7 @@ void setup() {
mqtt_topic_bus_rx = WIFI_HELPER::mqtt_topic_bus_rx();
debug = WIFI_HELPER::debug();

JSONDEBUG("GDOOR Setup done");
JSONDEBUG("GDoor Setup done");
JSONDEBUG("RX Pin: ");
JSONDEBUG(WIFI_HELPER::rx_pin());
JSONDEBUG("RX Sensitivity: ");
Expand Down
15 changes: 15 additions & 0 deletions firmware/esp32/gdoor/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "GDoor",
"version": "dev",
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{
"path": "firmware_merged.bin",
"offset": 0
}
]
}
]
}
2 changes: 1 addition & 1 deletion firmware/esp32/gdoor/merge_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def merge_bin(source, target, env):
)

# Add a post action that runs esptoolpy to merge available flash images
env.AddPostAction(APP_BIN , merge_bin)
env.AddPostAction(APP_BIN, merge_bin)
8 changes: 4 additions & 4 deletions firmware/esp32/gdoor/src/defines.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -17,7 +17,7 @@
#ifndef DEFINES_H
#define DEFINES_H

// GDOOR
// GDoor
#define MAX_WORDLEN 25

// RX Statemachine
Expand All @@ -40,7 +40,7 @@
#define STATE_SENDING 0x01

// WIFI
#define DEFAULT_WIFI_SSID "GDOOR"
#define DEFAULT_WIFI_SSID "GDoor"
#define DEFAULT_WIFI_PASSWORD "12345678"

// MQTT
Expand Down
6 changes: 3 additions & 3 deletions firmware/esp32/gdoor/src/gdoor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,7 +18,7 @@

namespace GDOOR {
/*
* Setup everything needed for GDOOR.
* Setup everything needed for GDoor.
* @param int txpin Pin number where PWM is created when sending out data
* @param int txenpin Pin number where output buffer is turned on/off
* @param int rxpin Pin number where pulses from bus are received
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor_data.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor_data.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
6 changes: 3 additions & 3 deletions firmware/esp32/gdoor/src/gdoor_rx.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -103,7 +103,7 @@ namespace GDOOR_RX {


/*
* Function called by user to setup everything needed for GDOOR.
* Function called by user to setup everything needed for GDoor.
* @param int rxpin Pin number where pulses from bus are received
*/
void setup(uint8_t rxpin) {
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor_rx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
6 changes: 3 additions & 3 deletions firmware/esp32/gdoor/src/gdoor_tx.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -130,7 +130,7 @@ namespace GDOOR_TX {
}

/*
* Function called by user to setup everything needed for GDOOR.
* Function called by user to setup everything needed for GDoor.
* @param int txpin Pin number where PWM is created when sending out data
* @param int txenpin Pin number where output buffer is turned on/off
*/
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor_tx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/gdoor_utils.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
12 changes: 6 additions & 6 deletions firmware/esp32/gdoor/src/mqtt_helper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -104,9 +104,9 @@ namespace MQTT_HELPER { //Namespace as we can only use it once
* "uniq_id": "gdoor_data_mac",
* "device": {
* "sw_version": "3.0",
* "name": "GDOOR Adapter",
* "name": "GDoor Adapter",
* "model": "ESP32 (de:ad:be:ef)",
* "manufacturer": "GDOOR Project",
* "manufacturer": "GDoor Project",
* "configuration_url": "http://127.0.0.1",
* "ids": "gdoor_mac",
* "availability_topic": "homeassistant/sensor/gdoor/data/config/mac"
Expand All @@ -132,8 +132,8 @@ R"""(
"value_template": "{{ value_json.action }}",
"device": {
"sw_version": "3.0",
"name": "GDOOR Adapter",
"manufacturer": "GDOOR Project",
"name": "GDoor Adapter",
"manufacturer": "GDoor Project",
)"""
"";

Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/mqtt_helper.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/printer_helper.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
6 changes: 3 additions & 3 deletions firmware/esp32/gdoor/src/wifi_helper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -332,7 +332,7 @@ namespace WIFI_HELPER { //Namespace as we can only use it once
wifiManager.setSaveConfigCallback(on_save);
wifiManager.setSaveParamsCallback(on_save);

wifiManager.setHostname("GDOOR");
wifiManager.setHostname("GDoor");
wifiManager.setShowPassword(true);

wifiManager.setBreakAfterConfig(true);
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/wifi_helper.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the GDOOR distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDOOR Authors.
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 14c13ad

Please sign in to comment.