Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- readCharacteristic(scanDurationCharacteristic)
- .then((list) => sensorScanDuration = list[0].toDouble())
- .then((_) {
- readCharacteristic(scanPeriodCharacteristic)
- .then((list) => sensorScanPeriod = list[0].toDouble());
- }).then((_) {
- readCharacteristic(aggregateCharacteristic)
- .then((list) => sensorAggregateCount = list[0].toDouble());
- }).then((_) {
- readCharacteristic(appEUICharacteristic)
- .then((list) => appEUI = decimalToHexString(list));
- }).then((_) {
- readCharacteristic(devEUICharacteristic)
- .then((list) => devEUI = decimalToHexString(list));
- }).then((_) {
- readCharacteristic(appKeyCharacteristic)
- .then((list) => appKey = decimalToHexString(list));
- });
Add Comment
Please, Sign In to add comment