update bluetooth for eddystone
This commit is contained in:
		@@ -1,9 +1,26 @@
 | 
			
		||||
{
 | 
			
		||||
  "bluetooth": "Support for additional Bluetooth services.\n\nSupport for additional Bluetooth services.",
 | 
			
		||||
  "bluetooth.advertiseUid": "Advertise an Eddystone UID",
 | 
			
		||||
  "bluetooth.advertiseUidBuffer": "Advertise an Eddystone UID",
 | 
			
		||||
  "bluetooth.advertiseUidBuffer|param|connectable": "true to keep bluetooth connectable for other services, false otherwise.",
 | 
			
		||||
  "bluetooth.advertiseUidBuffer|param|nsAndInstance": "16 bytes buffer of namespace (bytes 0-9) and instance (bytes 10-15)",
 | 
			
		||||
  "bluetooth.advertiseUidBuffer|param|power": "power level between 0 and 7, eg: 7",
 | 
			
		||||
  "bluetooth.advertiseUid|param|connectable": "true to keep bluetooth connectable for other services, false otherwise.",
 | 
			
		||||
  "bluetooth.advertiseUid|param|instance": "4 last bytes of the instance uid",
 | 
			
		||||
  "bluetooth.advertiseUid|param|ns": "4 last bytes of the namespace uid",
 | 
			
		||||
  "bluetooth.advertiseUid|param|power": "power level between 0 and 7, eg: 7",
 | 
			
		||||
  "bluetooth.advertiseUrl": "Advertise an Eddystone URL",
 | 
			
		||||
  "bluetooth.advertiseUrl|param|connectable": "true to keep bluetooth connectable for other services, false otherwise.",
 | 
			
		||||
  "bluetooth.advertiseUrl|param|power": "power level between 0 and 7, eg: 7",
 | 
			
		||||
  "bluetooth.advertiseUrl|param|url": "the url to transmit. Must be no longer than the supported eddystone url length, eg: \"https://makecode.com\"",
 | 
			
		||||
  "bluetooth.onBluetoothConnected": "Register code to run when the micro:bit is connected to over Bluetooth",
 | 
			
		||||
  "bluetooth.onBluetoothConnected|param|body": "Code to run when a Bluetooth connection is established",
 | 
			
		||||
  "bluetooth.onBluetoothDisconnected": "Register code to run when a bluetooth connection to the micro:bit is lost",
 | 
			
		||||
  "bluetooth.onBluetoothDisconnected|param|body": "Code to run when a Bluetooth connection is lost",
 | 
			
		||||
  "bluetooth.onUartDataReceived": "Registers an event to be fired when one of the delimiter is matched.",
 | 
			
		||||
  "bluetooth.onUartDataReceived|param|delimiters": "the characters to match received characters against.",
 | 
			
		||||
  "bluetooth.setTransmitPower": "Sets the bluetooth transmit power between 0 (minimal) and 7 (maximum).",
 | 
			
		||||
  "bluetooth.setTransmitPower|param|power": "power level between 0 (minimal) and 7 (maximum), eg: 7.",
 | 
			
		||||
  "bluetooth.startAccelerometerService": "Starts the Bluetooth accelerometer service",
 | 
			
		||||
  "bluetooth.startButtonService": "Starts the Bluetooth button service",
 | 
			
		||||
  "bluetooth.startIOPinService": "Starts the Bluetooth IO pin service.",
 | 
			
		||||
@@ -11,6 +28,7 @@
 | 
			
		||||
  "bluetooth.startMagnetometerService": "Starts the Bluetooth magnetometer service",
 | 
			
		||||
  "bluetooth.startTemperatureService": "Starts the Bluetooth temperature service",
 | 
			
		||||
  "bluetooth.startUartService": "Starts the Bluetooth UART service",
 | 
			
		||||
  "bluetooth.stopAdvertising": "Stops advertising Eddystone end points",
 | 
			
		||||
  "bluetooth.uartReadUntil": "Reads from the Bluetooth UART service buffer, returning its contents when the specified delimiter character is encountered.",
 | 
			
		||||
  "bluetooth.uartWriteNumber": "Prints a numeric value to the serial",
 | 
			
		||||
  "bluetooth.uartWriteString": "Writes to the Bluetooth UART service buffer. From there the data is transmitted over Bluetooth to a connected device.",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
  "bluetooth.advertiseUid|block": "bluetooth advertise UID|namespace (bytes 6-9)%ns|instance (bytes 2-6)%instance|with power %power|connectable %connectable",
 | 
			
		||||
  "bluetooth.advertiseUrl|block": "bluetooth advertise url %url|with power %power|connectable %connectable",
 | 
			
		||||
  "bluetooth.onBluetoothConnected|block": "on bluetooth connected",
 | 
			
		||||
  "bluetooth.onBluetoothDisconnected|block": "on bluetooth disconnected",
 | 
			
		||||
  "bluetooth.onUartDataReceived|block": "bluetooth|on data received %delimiters=serial_delimiter_conv",
 | 
			
		||||
  "bluetooth.setTransmitPower|block": "bluetooth set transmit power %power",
 | 
			
		||||
  "bluetooth.startAccelerometerService|block": "bluetooth accelerometer service",
 | 
			
		||||
  "bluetooth.startButtonService|block": "bluetooth button service",
 | 
			
		||||
  "bluetooth.startIOPinService|block": "bluetooth io pin service",
 | 
			
		||||
@@ -8,6 +12,7 @@
 | 
			
		||||
  "bluetooth.startMagnetometerService|block": "bluetooth magnetometer service",
 | 
			
		||||
  "bluetooth.startTemperatureService|block": "bluetooth temperature service",
 | 
			
		||||
  "bluetooth.startUartService|block": "bluetooth uart service",
 | 
			
		||||
  "bluetooth.stopAdvertising|block": "bluetooth stop advertising",
 | 
			
		||||
  "bluetooth.uartReadUntil|block": "bluetooth uart|read until %del=serial_delimiter_conv",
 | 
			
		||||
  "bluetooth.uartWriteNumber|block": "bluetooth uart|write number %value",
 | 
			
		||||
  "bluetooth.uartWriteString|block": "bluetooth uart|write string %data",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user