Răsfoiți Sursa

set repeater/room server Lat & Lon to 0.0 as default

recrof 1 an în urmă
părinte
comite
04ad06b8be

+ 4 - 5
variants/generic_espnow/platformio.ini

@@ -39,8 +39,8 @@ extends = Generic_ESPNOW
 build_flags =
   ${Generic_ESPNOW.build_flags}
   -D ADVERT_NAME='"ESPNOW Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 build_src_filter = ${Generic_ESPNOW.build_src_filter}
   +<../examples/simple_repeater/main.cpp>
@@ -71,8 +71,8 @@ extends = Generic_ESPNOW
 build_flags =
   ${Generic_ESPNOW.build_flags}
   -D ADVERT_NAME='"Heltec Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 build_src_filter = ${Generic_ESPNOW.build_src_filter}
@@ -80,4 +80,3 @@ build_src_filter = ${Generic_ESPNOW.build_src_filter}
 lib_deps =
   ${Generic_ESPNOW.lib_deps}
   ${esp32_ota.lib_deps}
-

+ 4 - 4
variants/heltec_v2/platformio.ini

@@ -25,8 +25,8 @@ build_flags =
   ${Heltec_lora32_v2.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"Heltec Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -43,8 +43,8 @@ build_flags =
   ${Heltec_lora32_v2.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"Heltec Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 8 - 8
variants/heltec_v3/platformio.ini

@@ -28,8 +28,8 @@ build_flags =
   ${Heltec_lora32_v3.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"Heltec Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -46,8 +46,8 @@ build_flags =
   ${Heltec_lora32_v3.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"Heltec Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1
@@ -139,8 +139,8 @@ extends = Heltec_lora32_v3
 build_flags =
   ${Heltec_lora32_v3.build_flags}
   -D ADVERT_NAME='"Heltec Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -157,8 +157,8 @@ build_src_filter = ${Heltec_lora32_v3.build_src_filter}
 build_flags =
   ${Heltec_lora32_v3.build_flags}
   -D ADVERT_NAME='"Heltec Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 4 - 4
variants/lilygo_t3s3/platformio.ini

@@ -39,8 +39,8 @@ build_flags =
   ${LilyGo_T3S3_sx1262.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"T3S3-1262 Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -71,8 +71,8 @@ build_flags =
   ${LilyGo_T3S3_sx1262.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"T3S3-1262 Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 2 - 2
variants/lilygo_tbeam/platformio.ini

@@ -51,8 +51,8 @@ build_flags =
   ${LilyGo_TBeam.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"Tbeam Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1

+ 4 - 4
variants/lilygo_tlora_v2_1/platformio.ini

@@ -39,8 +39,8 @@ build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
 build_flags =
   ${LilyGo_TLora_V2_1_1_6.build_flags}
   -D ADVERT_NAME='"TLora-V2.1-1.6 Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -109,8 +109,8 @@ build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
 build_flags =
   ${LilyGo_TLora_V2_1_1_6.build_flags}
   -D ADVERT_NAME='"TLora-V2.1-1.6 Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 5 - 5
variants/promicro/platformio.ini

@@ -27,8 +27,8 @@ build_src_filter = ${Faketec.build_src_filter} +<../examples/simple_repeater> +<
 build_flags =
   ${Faketec.build_flags}
   -D ADVERT_NAME="\"Faketec Repeater\""
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD="\"password\""
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -42,8 +42,8 @@ build_src_filter = ${Faketec.build_src_filter} +<../examples/simple_room_server>
 build_flags =
   ${Faketec.build_flags}
   -D ADVERT_NAME="\"Test Room\""
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD="\"password\""
   -D ROOM_PASSWORD="\"hello\""
 ;  -D MESH_PACKET_LOGGING=1
@@ -104,7 +104,7 @@ board = promicro_nrf52840
 build_flags = ${nrf52840_base.build_flags}
   -I variants/promicro
   -D PROMICROLLCC68
-  -D RADIO_CLASS=CustomLLCC68 
+  -D RADIO_CLASS=CustomLLCC68
   -D WRAPPER_CLASS=CustomLLCC68Wrapper
   -D LORA_TX_POWER=22
   -D SX126X_CURRENT_LIMIT=130

+ 4 - 4
variants/rak4631/platformio.ini

@@ -25,8 +25,8 @@ build_flags =
   ${rak4631.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"RAK4631 Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -40,8 +40,8 @@ build_flags =
   ${rak4631.build_flags}
   -D DISPLAY_CLASS=SSD1306Display
   -D ADVERT_NAME='"Test Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 4 - 4
variants/station_g2/platformio.ini

@@ -27,8 +27,8 @@ extends = Station_G2
 build_flags =
   ${Station_G2.build_flags}
   -D ADVERT_NAME='"Station G2 Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -45,8 +45,8 @@ build_src_filter = ${Station_G2.build_src_filter}
 build_flags =
   ${Station_G2.build_flags}
   -D ADVERT_NAME='"Station G2 Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 4 - 4
variants/t114/platformio.ini

@@ -36,8 +36,8 @@ build_src_filter = ${Heltec_t114.build_src_filter}
 build_flags =
   ${Heltec_t114.build_flags}
   -D ADVERT_NAME='"Heltec_T114 Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -49,8 +49,8 @@ build_src_filter = ${Heltec_t114.build_src_filter}
 build_flags =
   ${Heltec_t114.build_flags}
   -D ADVERT_NAME='"Heltec_T114 Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1

+ 4 - 4
variants/techo/platformio.ini

@@ -34,8 +34,8 @@ build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_repeate
 build_flags =
   ${LilyGo_Techo.build_flags}
   -D ADVERT_NAME='"T-Echo Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -46,8 +46,8 @@ build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_room_se
 build_flags =
   ${LilyGo_Techo.build_flags}
   -D ADVERT_NAME='"T-Echo Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1

+ 4 - 4
variants/xiao_c3/platformio.ini

@@ -30,8 +30,8 @@ build_flags =
   -D SX126X_RX_BOOSTED_GAIN=1
   -D LORA_TX_POWER=22
   -D ADVERT_NAME='"Xiao Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -49,8 +49,8 @@ build_flags =
   -D WRAPPER_CLASS=CustomSX1268Wrapper
   -D LORA_TX_POWER=22
   -D ADVERT_NAME='"Xiao Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
  ; -D MESH_PACKET_LOGGING=1
  ; -D MESH_DEBUG=1

+ 4 - 5
variants/xiao_s3_wio/platformio.ini

@@ -30,8 +30,8 @@ build_src_filter = ${Xiao_S3_WIO.build_src_filter}
 build_flags =
   ${Xiao_S3_WIO.build_flags}
   -D ADVERT_NAME='"XiaoS3 Repeater"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
 ;  -D MESH_PACKET_LOGGING=1
 ;  -D MESH_DEBUG=1
@@ -46,8 +46,8 @@ build_src_filter = ${Xiao_S3_WIO.build_src_filter}
 build_flags =
   ${Xiao_S3_WIO.build_flags}
   -D ADVERT_NAME='"XiaoS3 Room"'
-  -D ADVERT_LAT=-37.0
-  -D ADVERT_LON=145.0
+  -D ADVERT_LAT=0.0
+  -D ADVERT_LON=0.0
   -D ADMIN_PASSWORD='"password"'
   -D ROOM_PASSWORD='"hello"'
 ;  -D MESH_PACKET_LOGGING=1
@@ -105,4 +105,3 @@ build_src_filter = ${Xiao_S3_WIO.build_src_filter}
 lib_deps =
   ${Xiao_S3_WIO.lib_deps}
   densaugeo/base64 @ ~1.4.0
-