Guest User

Untitled

a guest
Jul 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. readCharacteristic(scanDurationCharacteristic)
  2. .then((list) => sensorScanDuration = list[0].toDouble())
  3. .then((_) {
  4. readCharacteristic(scanPeriodCharacteristic)
  5. .then((list) => sensorScanPeriod = list[0].toDouble());
  6. }).then((_) {
  7. readCharacteristic(aggregateCharacteristic)
  8. .then((list) => sensorAggregateCount = list[0].toDouble());
  9. }).then((_) {
  10. readCharacteristic(appEUICharacteristic)
  11. .then((list) => appEUI = decimalToHexString(list));
  12. }).then((_) {
  13. readCharacteristic(devEUICharacteristic)
  14. .then((list) => devEUI = decimalToHexString(list));
  15. }).then((_) {
  16. readCharacteristic(appKeyCharacteristic)
  17. .then((list) => appKey = decimalToHexString(list));
  18. });
Add Comment
Please, Sign In to add comment