James Devine
95346586ab
microbit-dal: Revisions to MicroBitEddystone.
...
This commit includes the addition of comments,
some validation and corrections to C++ definitions.
Also, a minor API revision for the Eddystone class, which
simple removes Eddystone from member functions, as it
it implicit that you will be setting a URL using Eddystone
in the MicroBitEddystone class.
6 years ago
James Devine
b251a59b9d
microbit-dal: moved to v2.0.0-rc6
6 years ago
Joe Finney
614083f5cf
Merge pull request #231 from bluetooth-mdw/master
...
Refactored Eddystone support, added UID frame type
7 years ago
Martin Woolley
05c333172f
Even prettier?
7 years ago
Martin Woolley
4857c83446
source code pretty formatted
7 years ago
Martin Woolley
15db7558f5
Refactored Eddystone support, introducing a new Eddystone class which separates the Eddystone message format from the more general responsibilities of the MicroBitBLEManager class. Hopefully the pattern paves the way for other beacon formats (e.g. iBeacon, AltBeacon) to be introduced via their own classes.
...
Added support for the Eddystone UID frame type.
Example use:
```
char UID_NAMESPACE[] = {0x0E,0x67,0x47,0x04,0x42,0xD0,0x14,0x06,0xD5,0x83}; // sha-1 hash of "com.bittysoftware"
char UID_INSTANCE[] = {0x00 , 0x00, 0x00, 0x00, 0x00, 0x01};
uint8_t advertising = 0;
uint8_t tx_power_level = 6;
void startAdvertising() {
uBit.bleManager.advertiseEddystoneUid(UID_NAMESPACE, UID_INSTANCE, tx_power_level, false);
uBit.bleManager.setTransmitPower(6);
uBit.display.scroll("ADVERTISING");
advertising = 1;
}
```
7 years ago
Martin Woolley
75b26f8339
Made MicroBitBLEManager more singleton-like. Made class instance variable public static.
...
Refactored Eddystone support, moving frame content code to new MicroBitEddystone class in anticipation of adding other frame formats.
7 years ago
Martin Woolley
5d32e70367
Made MicroBitBLEManager more singleton-like
...
Refatcored Eddystone support, moving frame content code to new MicroBitEddystone class.
7 years ago
Joe Finney
be56fff183
microbit: Add more detail to RSSI method documentation
7 years ago
Joe Finney
16522a6887
microbit: Update Radio RSSI value to be -dbm
...
Normalisation of RSSI value from the inverted dbm value return by the nrf51822
hardware into a true, signed RSSI value measured in -dbm.
7 years ago
Joe Finney
017fe73f9c
Merge pull request #230 from bluetooth-mdw/master
...
Guarded against redefinition of MICROBIT_BLE_SECURITY_LEVEL which cou…
7 years ago
Martin Woolley
0e3bed7004
Guarded against redefinition of MICROBIT_BLE_SECURITY_LEVEL which could occur if the bluetooth open config.json flag was set
7 years ago
Joe Finney
0c5c1168be
Bump version to v2.0.0-rc5
7 years ago
Joe Finney
d1fd610d4c
Merge pull request #223 from bluetooth-mdw/master
...
Exposed MICROBIT_BLE_SECURITY_LEVEL through config.json
7 years ago
Martin Woolley
4ce50dea21
Exposed MICROBIT_BLE_SECURITY_LEVEL through config.json as new security_level json property
7 years ago
Joe Finney
4569369a95
Merge pull request #219 from lancaster-university/microbit-mbfs
...
Microbit mbfs
7 years ago
James Devine
3aa45435df
microbit-dal: removed open from MicroBitFile
...
After recent additions such as "flush" to the file API,
an open call no longer makes sense. This commit removes
open.
7 years ago
Joe Finney
2c01c1646e
microbit: Add flush() operation to MicroBitFile
...
Add flush() wrapper of MicroBitFile class.
7 years ago
Joe Finney
cf5cb234f2
microbit: Add ARMCC compatibility to MicroBitFileSystem
...
- Generalised linker symbol definition to permit ARMCC linker symbols in
addition to gcc linker symbols
- Improved MicroBitFileSystem FLASH area calculation. Some sections were
erroneously used in the calculation of the previous version, and page aligned
calculations resulted in artificial over allocation.
- moved variable initialisation code from MicroBitFileSystems class
declaration into init() funciton to support ARMCC compiler.
- Remove redundant simulator test code
7 years ago
Joe Finney
bfe452593f
microbit: Clarify failure case handling on MicroBitFile abstraction.
...
MicroBitFile now contains an explicit isValid() funciton, which can be used to
determine if the given file object is a valid file on the file system.
Default file open mode also updated to allow the user to override whether or
not the file is created on open.
7 years ago
Joe Finney
7563934897
microbit: Additional filename validation checks for MicroBitFileSystem
7 years ago
Joe Finney
58cb7b9650
microbit: Add explicit flush() function to MicroBitFileSystem
...
Explicit call added that writes back all cached state to FLASH. the behaviour
of this call is semantically equivalent to calling close() then open().
7 years ago
Joe Finney
21def371ae
microbit: Fix typos
7 years ago
Joe Finney
36a0ee383e
microbit: Remove MicroBitFile overload operations
7 years ago
Joe Finney
bba7b543ae
microbit: Clean up formatting and remove debug code.
7 years ago
Joe Finney
5ee1db1cdf
microbit: Add default settings for MicroBitFileSystem
7 years ago
Joe Finney
f1ea49e778
Merge pull request #216 from bluetooth-mdw/master
...
Support for Just Works pairing
7 years ago
Martin Woolley
4ad61def37
Support for Just Works pairing
7 years ago
Joe Finney
6e755d0b2c
Merge pull request #215 from showio/master
...
Added connectable flag to advertise eddystoneurl func
7 years ago
Thomas Beverley
c95c8e32ae
Added connectable flag to advertise eddystoneurl func
7 years ago
Joe Finney
73093aa2f5
Merge pull request #214 from showio/master
...
Added physical web transmission
7 years ago
Thomas Beverley
05f60d018c
Renamed physical web to be eddystone url
7 years ago
Thomas Beverley
93f22b33a1
Fixed internval typo
7 years ago
Thomas Beverley
145d8c3d7a
Optionally include physical web code depending on microbit-dal.bluetooth.physical_web from the config.json file
7 years ago
Thomas Beverley
93917402e6
Changed uint8_t to be int8_t for calibration and added transmission interval as optional parameter to physical web transmission
7 years ago
Thomas Beverley
95dc970024
Fixed typo in callibratedPower -> calibratedPower
7 years ago
Thomas Beverley
5617cc600d
Added ManagedString variant to advertisePhysicalWebUrl. Renamed stopAdvertise to stopAdvertising. Improved the docs around these two methods
7 years ago
Thomas Beverley
2f0db1ed2c
Added physical web transmission
7 years ago
Joe Finney
9c79ef729b
microbit: Added MicroBitFile Object Oriented API
7 years ago
Joe Finney
89987a265a
microbit: Remove redundant code
7 years ago
Joe Finney
1484fce941
microbit: Minor improvmeents to reduce uneccessary erasures of FLASH pages
7 years ago
Joe Finney
052b6d206f
microbit: correct initialisation of root directory
7 years ago
Joe Finney
2237c764d8
microbit: First clean compile for micro:bit
7 years ago
Joe Finney
b71d1e37a1
microbit: Initial merge of file fystem codebase
7 years ago
James Devine
5fa55812c7
Merge pull request #207 from lancaster-university/emptystring
...
Make sure there is only one empty string
7 years ago
Martin Woolley
3cf56b8f44
Merge pull request #209 from bluetooth-mdw/master
...
PWM Control characteristic added to IO Pin Service
7 years ago
Martin Woolley
b73be32eeb
removed serial debug output
7 years ago
Martin Woolley
6c4fa882a3
Added PWM Control characteristic to the IO Pin Service
7 years ago
Martin Woolley
383b8b18b3
Added PWM Control characteristic to the IO Pin Service
7 years ago
Michal Moskal
1942b2840b
Make sure there is only one empty string
7 years ago