Skip to content

Commit e48e64a

Browse files
committed
fix: bad linker directory; added companion ble and usb roles
1 parent f88ebad commit e48e64a

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

variants/sensecap_solar/platformio.ini

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ build_flags = ${nrf52_base.build_flags}
3232
build_src_filter = ${nrf52_base.build_src_filter}
3333
+<helpers/*.cpp>
3434
+<helpers/sensors>
35-
+<helpers/nrf52/SenseCapSolarBoard.cpp>
36-
+<../variants/SenseCap_Solar>
35+
+<../variants/sensecap_solar>
3736
debug_tool = jlink
3837
upload_protocol = nrfutil
3938
lib_deps =
4039
${nrf52_base.lib_deps}
41-
rweather/Crypto @ ^0.4.0
4240
adafruit/Adafruit INA3221 Library @ ^1.0.1
4341
adafruit/Adafruit INA219 @ ^1.2.3
4442
adafruit/Adafruit AHTX0 @ ^2.0.5
@@ -72,4 +70,37 @@ build_flags =
7270
; -D MESH_PACKET_LOGGING=1
7371
; -D MESH_DEBUG=1
7472
build_src_filter = ${SenseCap_Solar.build_src_filter}
75-
+<../examples/simple_room_server/main.cpp>
73+
+<../examples/simple_room_server/main.cpp>
74+
75+
[env:SenseCap_Solar_companion_radio_ble]
76+
extends = SenseCap_Solar
77+
build_flags =
78+
${SenseCap_Solar.build_flags}
79+
-D MAX_CONTACTS=100
80+
-D MAX_GROUP_CHANNELS=8
81+
-D BLE_PIN_CODE=123456
82+
-D OFFLINE_QUEUE_SIZE=256
83+
; -D BLE_DEBUG_LOGGING=1
84+
; -D MESH_PACKET_LOGGING=1
85+
; -D MESH_DEBUG=1
86+
build_src_filter = ${SenseCap_Solar.build_src_filter}
87+
+<helpers/nrf52/SerialBLEInterface.cpp>
88+
+<../examples/companion_radio>
89+
lib_deps =
90+
${SenseCap_Solar.lib_deps}
91+
densaugeo/base64 @ ~1.4.0
92+
93+
[env:SenseCap_Solar_companion_radio_usb]
94+
extends = SenseCap_Solar
95+
build_flags =
96+
${SenseCap_Solar.build_flags}
97+
-D MAX_CONTACTS=100
98+
-D MAX_GROUP_CHANNELS=8
99+
; -D MESH_PACKET_LOGGING=1
100+
; -D MESH_DEBUG=1
101+
build_src_filter = ${SenseCap_Solar.build_src_filter}
102+
+<helpers/nrf52/SerialBLEInterface.cpp>
103+
+<../examples/companion_radio>
104+
lib_deps =
105+
${SenseCap_Solar.lib_deps}
106+
densaugeo/base64 @ ~1.4.0

0 commit comments

Comments
 (0)