When migrating over to a completely local smart home, the hardest issue I had to overcome was moving away from vendor-locked ...
Java里用 BitSet 和 ByteBuffer 封装,配合Lombok的 @Data 注解,一个 ZigBeeApsFrame 对象的构造、序列化、反序列化全程类型安全,IDE能自动补全字段名,编译期就能捕获 setDestinationEndpoint (0) 这种非法值(Zigbee端点号范围是1-240)。