20 lines
645 B
C
20 lines
645 B
C
// Experimental Wireless M-Bus C1 repeater for Heltec WiFi LoRa 32 V4.3.
|
|
// See docs/ for hardware evidence, RF configuration, and standards gaps.
|
|
#include <stdio.h>
|
|
#include "esp_system.h"
|
|
#include "esp_timer.h"
|
|
#include "repeater.h"
|
|
#include "led.h"
|
|
|
|
void console_start(void);
|
|
|
|
void app_main(void)
|
|
{
|
|
printf("{\"event\":\"boot\",\"fw\":\"wmbus-repeater\",\"version\":\"%s %s\","
|
|
"\"reset_reason\":%d}\n", __DATE__, __TIME__, (int)esp_reset_reason());
|
|
fflush(stdout);
|
|
led_init(); // solid ON = powered, initialising
|
|
console_start();
|
|
repeater_start(); // led_boot_done() fires once the radio is in RX
|
|
}
|