Comments (3)
/**
- The 'Name' characteristic of the Light Bulb service.
*/
static const HAPStringCharacteristic lightBulbNameCharacteristic = {
.format = kHAPCharacteristicFormat_String,
.iid = kIID_LightBulbName,
.characteristicType = &kHAPCharacteristicType_Name,
.debugDescription = kHAPCharacteristicDebugDescription_Name,
.manufacturerDescription = NULL,
.properties = { .readable = true,
.writable = true,//.writable = false,
// .supportsEventNotification = false,
.supportsEventNotification = true,
.hidden = false,
.requiresTimedWrite = false,
.supportsAuthorizationData = false,
.ip = { .controlPoint = false, .supportsWriteResponse = false },
.ble = { .supportsBroadcastNotification = false,
.supportsDisconnectedNotification = false,
.readableWithoutSecurity = false,
.writableWithoutSecurity = false } },
.constraints = { .maxLength = 64 },
// .callbacks = { .handleRead = HAPHandleNameRead, .handleWrite = NULL }
.callbacks = { .handleRead = HandleDeviceNameRead, .handleWrite = HandleDeviceNameWrite }
};
/**
- The Light Bulb service that contains the 'On' characteristic.
/
const HAPService lightBulbService = {
.iid = kIID_LightBulb,
.serviceType = &kHAPServiceType_LightBulb,
.debugDescription = kHAPServiceDebugDescription_LightBulb,
.name = "Light Bulb",
.properties = { .primaryService = true, .hidden = false, .ble = { .supportsConfiguration = false } },
.linkedServices = NULL,
.characteristics = (const HAPCharacteristic const[]) { &lightBulbServiceSignatureCharacteristic,
&lightBulbNameCharacteristic,
&lightBulbOnCharacteristic,
NULL }
};
from homekitadk.
If you mean the Name
characteristic, it has no write permissions
PermissionsPairedRead
from homekitadk.
Thank you
from homekitadk.
Related Issues (20)
- How to add Accessories to bridgedAccessories in example Bridge Homekit ADK
- Connect, Pair, but can not receive value
- BLE and IP transports at the same time HOT 2
- Apple Defined Characteristics documented but not address in HAPCharacteristicTypes.h
- make all Error (related to mbedtls) HOT 4
- Docker build for Raspberry ends with an error
- How to build this library as .so
- linux compile raspberry pi firmware error HOT 1
- mbedtls --HEAD CMake Error
- Make docs doesn't work on Ubuntu
- Thread Network Protocol Redux HOT 4
- Make docs doesn't work on Ubuntu HOT 2
- How to use this code
- The HomeApp auto disconnect HOT 1
- Can't build project on m1
- Make docs not working on M1 HOT 1
- libdns_sd.so.1
- [Mbedtls] Compiler build error ,some chachapoly API undefined
- Ss
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homekitadk.