diff --git a/code/nrf-connect/Kconfig b/code/nrf-connect/Kconfig new file mode 100644 index 0000000..1c80f85 --- /dev/null +++ b/code/nrf-connect/Kconfig @@ -0,0 +1,32 @@ + +source "Kconfig.zephyr" + +choice PRST_NETWORK + prompt "b-parasite Network" + default PRST_NETWORK_BLE + +config PRST_NETWORK_NONE + bool "Network disabled" + +config PRST_NETWORK_BLE + bool "Uses BLE as the network" + depends on BT + +endchoice + +### +### BLE configs +### + +choice PRST_BLE_ENCODING + prompt "b-parasite BLE encoding" + depends on PRST_NETWORK_BLE + default PRST_BLE_ENCODING_BPARASITE_V2 + +config PRST_BLE_ENCODING_BPARASITE_V2 + bool "Uses the custom b-parasite protocol v2 for encoding advertising packets" + +config PRST_BLE_ENCODING_BTHOME + bool "Uses the BTHome (bthome.io) BLE encoding" + +endchoice \ No newline at end of file diff --git a/code/nrf-connect/src/main.c b/code/nrf-connect/src/main.c index b9e6cc0..1777755 100644 --- a/code/nrf-connect/src/main.c +++ b/code/nrf-connect/src/main.c @@ -31,8 +31,7 @@ int main(void) { sensors.soil.adc_read.voltage); LOG_INF("Photo: %u lx (%.3f mV)", sensors.photo.brightness, sensors.soil.adc_read.voltage); - LOG_INF("Temp: %f oC (%d)", sensors.shtc3.temp_c, - (int)sensors.shtc3.temp_c); + LOG_INF("Temp: %f oC", sensors.shtc3.temp_c); LOG_INF("Humi: %.0f %%", 100.0 * sensors.shtc3.rel_humi); LOG_INF("--------------------------------------------------");