@@ -1173,108 +1072,6 @@ Only one instance of the Device Information Service is exposed on a device.
-
-
@@ -1295,7 +1092,7 @@ Only one instance of the Device Information Service is exposed on a device.
Requirement
-
Mandatory
+
Optional
@@ -1563,7 +1360,7 @@ Data can be read on demand or notified periodically.
Requirement
-
Mandatory
+
Optional
@@ -1928,7 +1725,7 @@ Data can be read on demand or notified periodically.
Requirement
-
Mandatory
+
Optional
@@ -2193,7 +1990,7 @@ Data can be read on demand or notified periodically.
Requirement
-
Mandatory
+
Optional
@@ -2380,7 +2177,9 @@ READ: A client reading this characteristic will receive Pin Number / Value pairs
Summary:
-
A bit mask which allows each pin to be configured for analogue or digital use.
+
A bit mask which allows each pin to be configured for analogue or digital use.
+
+Bit n corresponds to pin n where 0 LESS THAN OR EQUAL TO n LESS THAN 19. A value of 0 means digital and 1 means analogue.
@@ -2482,6 +2281,7 @@ READ: A client reading this characteristic will receive Pin Number / Value pairs
A bit mask which allows each pin to be configured for input or output use.
+
Bit n corresponds to pin n where 0 LESS THAN OR EQUAL TO n LESS THAN 19. A value of 0 means configured for output and 1 means configured for input.
@@ -2572,7 +2372,7 @@ Bit n corresponds to pin n where 0 LESS THAN OR EQUAL TO n LESS THAN 19. A value
Requirement
-
Mandatory
+
Optional
@@ -2949,7 +2749,7 @@ Octet 4, LED Row 5: bit4 bit3 bit2 bit1 bit0
Requirement
-
Mandatory
+
Optional
@@ -3439,7 +3239,7 @@ These should be of types indicated in the micro:bit Requirements characteristic
Requirement
-
Mandatory
+
Optional
@@ -3706,7 +3506,7 @@ Notifications are used to deliver the flash code to a client during the initial
Requirement
-
Mandatory
+
Optional
@@ -3864,7 +3664,7 @@ Notifications are used to deliver the flash code to a client during the initial
Requirement
-
Mandatory
+
Optional
diff --git a/docs/Report 3/BBC microbit.html b/docs/Report 3/BBC microbit.html
index c26fd6e..5fd6884 100644
--- a/docs/Report 3/BBC microbit.html
+++ b/docs/Report 3/BBC microbit.html
@@ -667,7 +667,7 @@ Removed Write property from MicroBit Requirements characteristic.
Requirement
-
Mandatory
+
Optional
@@ -710,117 +710,6 @@ Only one instance of the Device Information Service is exposed on a device.
-
-
-
-
-
UUID
-
00002A2900001000800000805F9B34FB
-
-
-
-
-
-
Requirement
-
Optional
-
-
-
-
-
The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Write Without Response
-
Excluded
-
-
-
-
Signed Write
-
Excluded
-
-
-
-
Reliable Write
-
Excluded
-
-
-
-
-
-
-
-
-
-
Writable Auxiliaries
-
Excluded
-
-
-
-
Extended Properties
-
Excluded
-
-
-
-
-
Fields
-
-
- 1. Manufacturer Name : utf8s |
-
-
-
-
-
-
-
-
-
@@ -1265,118 +1154,6 @@ Only one instance of the Device Information Service is exposed on a device.
-
-
-
-
-
UUID
-
00002A2800001000800000805F9B34FB
-
-
-
-
-
-
Requirement
-
Mandatory
-
-
-
-
-
The value of this characteristic is a UTF-8 string representing the software revision for the software within the device.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Write Without Response
-
Excluded
-
-
-
-
Signed Write
-
Excluded
-
-
-
-
Reliable Write
-
Excluded
-
-
-
-
-
-
-
-
-
-
Writable Auxiliaries
-
Excluded
-
-
-
-
Extended Properties
-
Excluded
-
-
-
-
-
Fields
-
-
- 1. Software Revision : utf8s |
-
-
-
-
-
-
-
-
-
@@ -1397,7 +1174,7 @@ Only one instance of the Device Information Service is exposed on a device.
Requirement
-
Mandatory
+
Optional
@@ -1687,7 +1464,7 @@ Data can be read on demand or notified periodically.
Requirement
-
Mandatory
+
Optional
@@ -2084,7 +1861,7 @@ Data can be read on demand or notified periodically.
Requirement
-
Mandatory
+
Optional
@@ -2369,7 +2146,7 @@ Data can be read on demand or notified periodically.
Requirement
-
Mandatory
+
Optional
@@ -2566,7 +2343,9 @@ READ: A client reading this characteristic will receive Pin Number / Value pairs
Summary:
-
A bit mask which allows each pin to be configured for analogue or digital use.
+
A bit mask which allows each pin to be configured for analogue or digital use.
+
+Bit n corresponds to pin n where 0 LESS THAN OR EQUAL TO n LESS THAN 19. A value of 0 means digital and 1 means analogue.
@@ -2678,6 +2457,7 @@ READ: A client reading this characteristic will receive Pin Number / Value pairs
A bit mask which allows each pin to be configured for input or output use.
+
Bit n corresponds to pin n where 0 LESS THAN OR EQUAL TO n LESS THAN 19. A value of 0 means configured for output and 1 means configured for input.
@@ -2778,7 +2558,7 @@ Bit n corresponds to pin n where 0 LESS THAN OR EQUAL TO n LESS THAN 19. A value
Requirement
-
Mandatory
+
Optional
@@ -3185,7 +2965,7 @@ Octet 4, LED Row 5: bit4 bit3 bit2 bit1 bit0
Requirement
-
Mandatory
+
Optional
@@ -3715,7 +3495,7 @@ These should be of types indicated in the micro:bit Requirements characteristic
Requirement
-
Mandatory
+
Optional
@@ -4002,7 +3782,7 @@ Notifications are used to deliver the flash code to a client during the initial
Requirement
-
Mandatory
+
Optional
@@ -4170,7 +3950,7 @@ Notifications are used to deliver the flash code to a client during the initial
Requirement
-
Mandatory
+
Optional
diff --git a/module.json b/module.json
index 57e5cae..b90fe24 100644
--- a/module.json
+++ b/module.json
@@ -1,6 +1,6 @@
{
"name": "microbit-dal",
- "version": "1.2.3",
+ "version": "1.2.4",
"license": "Apache2",
"description": "The runtime library for the BBC micro:bit, developed by Lancaster University",
"keywords": [
diff --git a/source/MicroBitSuperMain.cpp b/source/MicroBitSuperMain.cpp
index bb029db..857c0fc 100644
--- a/source/MicroBitSuperMain.cpp
+++ b/source/MicroBitSuperMain.cpp
@@ -60,18 +60,18 @@ int main()
uBit.ble = new BLEDevice();
uBit.ble->init();
uBit.ble->onDisconnection(bleDisconnectionCallback);
+
+ // Ensure we're advertising.
+ uBit.ble->accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
+ uBit.ble->accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)MICROBIT_BLE_DEVICE_NAME, sizeof(MICROBIT_BLE_DEVICE_NAME));
+ uBit.ble->setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
+ uBit.ble->setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(200));
+ uBit.ble->startAdvertising();
}
if (!uBit.ble_firmware_update_service)
uBit.ble_firmware_update_service = new MicroBitDFUService(*uBit.ble);
- // Ensure we're advertising.
- uBit.ble->accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
- uBit.ble->accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)MICROBIT_BLE_DEVICE_NAME, strlen(MICROBIT_BLE_DEVICE_NAME)+1);
- uBit.ble->setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
- uBit.ble->setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(1000));
- uBit.ble->startAdvertising();
-
// enter BLUE ZONE mode.
uBit.ble_firmware_update_service->pair();
}