zhaohe 11 months ago
parent
commit
90b5cc2026
  1. 36
      README.md
  2. 2
      app/src/acid_dispenser_ble_slave_main.c
  3. 6
      app/src/aproject_config/config.h

36
README.md

@ -6,43 +6,9 @@ build_app.bat
build_bootloader.bat 编译bootloader
flash_with_id.bat 烧录程序携带ID
#############################################################################
//休眠
//不休眠
//状态机
两个状态
休眠
不休眠
static bool sleep;
static bool work;
static int mode;
static bool pumpworkstate;
static connected;
active ble;
一个状态
updateState();
离线休眠状态
关机不广播
离线广播状态
按下按键亮红灯,广播
V1.0
连接状态
低电量事件
触发警告灯
工作
非工作
模式1
模式2
未定义状态
连接状态休眠
关灯,不关广播
###############################################################################
```

2
app/src/acid_dispenser_ble_slave_main.c

@ -216,7 +216,7 @@ void pre_process_state(app_event_t* event, uint16_t event_size) {
static int32_t cnt;
if (eventType == kappevent_tmr_1s_scheduler_event) {
ZLOGI("scheduler.....");
// ZLOGI("scheduler.....");
if (cnt % 10 == 0 && zble_module_is_connected()) {
send_report_heart(battery_mgr_get_battery_level(), zapp_get_gstate()->reset_flag, 1);
}

6
app/src/aproject_config/config.h

@ -1,15 +1,11 @@
#pragma once
/***********************************************************************************************************************
* *
***********************************************************************************************************************/
#define CATEGORY "AciDisp" //
#define MANUFACTURER_NAME "iflytop"
#define FIRMWARE_VERSION (1)
#define BLESTACK_VERSION (1)
#define BOOTLOADER_VERSION (1)
#define HARDWARE_VERSION (2)
#define HARDWARE_VERSION (1)
#define APP_COMPANY_IDENTIFIER 0xFFFF
Loading…
Cancel
Save