点击登录

讨论 能做一个蓝牙断联提醒的小程序吗?

不知晦朔

Lv.7
社区会员
倒计时小程序可以后台运行,很多第三方表盘都能显示蓝牙连接状态,那么原理上应该是可以做一个小程序用来显示蓝牙连接状态,一旦手环和手机的蓝牙连接断开就振动提醒的小程序的吧?
【设想】这个蓝牙断联提醒小程序,除了可以显示蓝牙连接状态、有小程序启用开关,最好能设置蓝牙断联提醒定时开启(早上起床或午睡完,容易忘带手机)

Countdown applet can run in the background, and many third-party dials can display the Bluetooth connection status. In principle, it should be possible to create a applet to display the Bluetooth connection status. Once the Bluetooth connection between the bracelet and the mobile phone is disconnected, the applet will vibrate to remind you, right?
[Imagine] This Bluetooth disconnection reminder applet can display the Bluetooth connection status and have an applet enable switch. It is better to set the Bluetooth disconnection reminder to be enabled regularly (it is easy to forget to bring your mobile phone after getting up in the morning or taking a nap)
 
领取红包用户
The countdown applet can run in the background, and many third-party dials can display the Bluetooth connection status. In principle, it should be possible to make a small program to display the Bluetooth connection status. Once the Bluetooth connection between the bracelet and the mobile phone is disconnected, it will vibrate to remind you Procedural, right?
[Imagination] This Bluetooth disconnection reminder applet, in addition to displaying the Bluetooth connection status and having a small program enable switch, it is best to set the Bluetooth disconnection reminder to be turned on at a fixed time (it is easy to forget to bring your mobile phone when you get up in the morning or after a nap)

Countdown applet can run in the background, and many third-party dials can display the Bluetooth connection status. In principle, it should be possible to create an applet to display the Bluetooth connection status. Once the Bluetooth connection between the bracelet and the mobile phone is disconnected, the applet will vibrate to remind you, right?
[Imagine] This Bluetooth disconnection reminder applet can display the Bluetooth connection status and have an applet enable switch. It is better to set the Bluetooth disconnection reminder to be enabled regularly (it is easy to forget to bring your mobile phone after getting up in the morning or taking a nap)
Interesting but I guess consolelog eacorpian have already made that
 
感谢楼主的红包!

nanan领取了您的红包获得了0.29生米粒
 
不太可能 米环的内存太小 无法在后台运行小程序 表盘上的蓝牙状态是调用系统的 凑活着看吧
 
不太可能 米环的内存太小 无法在后台运行小程序 表盘上的蓝牙状态是调用系统的 凑活着看吧
倒计时小程序不是能后台运行吗?官方的不能,但第三方小程序可以后台倒计时,而且内存很小
 
不太可能 米环的内存太小 无法在后台运行小程序 表盘上的蓝牙状态是调用系统的 凑活着看吧
可后台运行的计时器

Alpha2: 修复了第一次进入计时器出现 Panic 的问题

“妈妈再也不用担心我倒计时的时候看不到时间了”
浏览附件15395浏览附件15396浏览附件15397

此计时器拥有如下功能:​

  • 后台倒计时
  • 暂停、继续倒计时
  • 倒计时完毕震动提醒

UI 设计上参考了 Zepp OS 官方的设计规范,视觉设计上更加贴近小米手环。


具体演示可查看演示视频

(演示设备为小米手环7 NFC,固件版本为 1.27.0.4 , 生产时间为 2022.7,测试设备安装了 2048 2.1.1,环间计算器2.5.0,中英词典1.5.0,课程表(非米坛上的))

有关 Panic 界面:
Panic 界面出现不代表手环系统出现问题,而是程序在运行过程中因为某些出现异常,此界面的出现是防止异常带来进一步影响(如导致系统重启),及时中断程序运行。

小程序源码已开源:

https://gitee.com/LaomoBK/ktimer
 
小程序是可以调用手机连接状态的,而且可以后台运行,所以这个方法可行
 
感谢楼主的红包!

Gaotiyast领取了您的红包获得了0.73生米粒
 
感谢楼主的红包!

_Juvenile_dsw666领取了您的红包获得了0.24生米粒
 
官方没有提供接口,无解,定时器是因为官方有定时的接口,实际小程序不能后台运行
 
感谢楼主的红包!

consolelogC8H10N4O2领取了您的红包获得了0.39Coins
 
It woulb be possible with alarm API, but well test Bluetooth status , that will reduce battery a lot, also will be bad, the thing of go to a page to test bluetooth status, and then go back, but well, you can use my simple program of Bluetooth
 

*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

相似主题

米环7小程序
6K
38

Home 首页
Home 资源
News 发现
Account 我的
顶部