ibeacon UUID
2024-08-27 21:02:50
import sys;
import uuid;
s=uuid.uuid4().hex
#s="f6bc15e0939046679be1866ec8a199dc"
sys.stdout.write("UUID:\t\t"+s+"\n")
sys.stdout.write("Proximity UUID:\t"+s[0:8]+'-'+s[8:12]+'-'+s[12:16]+'-'+s[16:20]+'-'+s[20:]+"\n")
sys.stdout.write("Cmd:\t\thcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 "+
s[0:2] +' '+s[2:4] +' '+s[4:6] +' '+s[6:8] +' '+
s[8:10] +' '+s[10:12]+' '+s[12:14]+' '+s[14:16]+' '+
s[16:18]+' '+s[18:20]+' '+s[20:22]+' '+s[22:24]+' '+
s[24:26]+' '+s[26:28]+' '+s[28:30]+' '+s[30:32]+' '+
"00 00 00 00 C8 00\n")
最新文章
- MongoDB聚合运算之group和aggregate聚集框架简单聚合(10)
- PHP大文件存储示例,各种文件分割和合并(二进制分割与合并)
- android-exploitme(六):基础加密
- 20130909QA整理笔记
- bzoj 2588 Spoj 10628. Count on a tree(主席树)
- hdoj 2568 前进
- sgu Ice-cream Tycoon
- 超高性价比USB转CAN适配器,2500V工业级隔离,兼容ZLG软件
- UNIX网络编程卷1 时间获取程序server TCP 协议相关性
- 支付宝移动支付开发详细教程服务端采用.net mvc webapi(C#)
- ubuntu 常用命令记录
- linux 如何打包代码
- Node.js前言
- 如何打开hprof文件
- 对Java框架spring、hibernate、Struts的粗浅理解
- scheduleAtFixedRate 与 scheduleWithFixedDelay 的区别
- windows kafka 环境搭建踩坑记
- MySQL备份mydumper的原理【转】
- Ubuntu1404 开启定时任务 crontab
- Windows环境墙内搭建Go语言集成开发环境