34 lines
824 B
C
Raw Normal View History

2025-04-08 18:46:12 +08:00
#ifndef BELON_CONFIG_H_
#define BELON_CONFIG_H_
2025-05-16 18:06:38 +08:00
#define BLE_WIFI_FLASH_KEY_SSID "wifi_ssid"
#define BLE_WIFI_FLASH_KEY_PASS "wifi_pass"
#define BLE_WIFI_FLASH_KEY_BSSID "wifi_bssid"
#define BLE_WIFI_FLASH_KEY_CHANNEL "wifi_channel"
#define BLE_WIFI_FLASH_KEY_SECURITY "wifi_security"
2025-04-08 18:46:12 +08:00
#include "stdint.h"
2025-05-24 17:25:09 +08:00
typedef struct{
2025-04-08 18:46:12 +08:00
uint8_t bind_mac[6];
uint8_t audio_enable;
uint8_t audio_volume;
uint8_t detect_interval;
uint32_t tempreature_limit_low;
uint32_t tempreature_limit_high;
uint8_t resave[32];
} app_dev_config_t;
void belon_ble_active();
void belon_ble_init_scan();
void belon_ble_init_adv();
void belon_ble_scan_start();
void belon_ble_scan_stop();
void belon_ble_deinit_adv();
void belon_ble_start_adv();
2025-05-16 18:06:38 +08:00
void wifi_status_cb(void *param);
2025-05-24 17:25:09 +08:00
void connect_mqtt();
2025-05-16 18:06:38 +08:00
2025-04-08 18:46:12 +08:00
#endif // BELON_CONFIG_H_