mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
add:插口名称与hass设备名称同步
add:配对信息中增加ip内容 fix:尝试修复app无法获取配对结果的问题
This commit is contained in:
@@ -9,11 +9,13 @@
|
||||
|
||||
static void ota_server_status_handler( OTA_STATE_E state, float progress )
|
||||
{
|
||||
char str[64]={0};
|
||||
char str[64] = { 0 };
|
||||
switch ( state )
|
||||
{
|
||||
case OTA_LOADING:
|
||||
os_log("ota server is loading, progress %.2f%%", progress);
|
||||
// if ( (int) progress == progress )
|
||||
// sprintf( str, "{\"mac\":\"%s\",\"ota_progress\":%d}", strMac,(int) progress );
|
||||
break;
|
||||
case OTA_SUCCE:
|
||||
os_log("ota server daemons success");
|
||||
@@ -26,9 +28,9 @@ static void ota_server_status_handler( OTA_STATE_E state, float progress )
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if(str[0]>0)
|
||||
if ( str[0] > 0 )
|
||||
{
|
||||
user_send(true,str);
|
||||
user_send( true, str );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user