Difference between revisions of "Component: Bluetooth ( Comms)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 0.1 |- | width="20%" style="color:gray;...") |
(Made the filters section more readable) |
||
| Line 113: | Line 113: | ||
| width="90%" | Filters | | width="90%" | Filters | ||
|- | |- | ||
| − | | colspan="2" | Limits the list of available Bluetooth devices, for example: | + | | colspan="2" | Limits the list of available Bluetooth devices, for example: |
| + | * filters: [ { services: [0x1802, 0x1803] } ] | ||
| + | * filters: [ { name: "My Cool Device" } ] | ||
| + | * filters: [ { namePrefix: "Mtx" } ] | ||
| + | * filters: [ { services: ["heart_rate"] } ], optionalServices: ["battery_service"] | ||
| + | * (leave blank for all devices) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-24-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-24-icon.png]] | ||
Latest revision as of 11:59, 26 February 2026
| Author | MatrixTSL |
| Version | 0.1 |
| Category | Comms |
Contents
Bluetooth component
Allows connection to a bluetooth device from the browser.
Detailed description
No detailed description exists yet for this component
Examples
Example takes an inpt from a slider and outputs the number to a seven segment display. The display prints Err if the number is out of range.
Macro reference
Disconnect
| Disconnect | |
| Disconnects from the remote BLE device | |
| Return | |
RequestDevice
| RequestDevice | |
| Attempts to connect with a Bluetooth BLE device. | |
| Return | |
WriteString
| WriteString | |
| Writes a string value to GATT Characteristic on a connected BLE device | |
| sText | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Bluetooth.fcweb
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Bluetooth.fcweb