# BLEConsole **Repository Path**: topseten/BLEConsole ## Basic Information - **Project Name**: BLEConsole - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BLEConsole Windows command-line tool for interacting with Bluetooth LE devices ![alt text](https://raw.githubusercontent.com/sensboston/BLEConsole/master/BLEConsole/BLEConsole.png) ## [Install via ClickOnce](http://senssoft.com/BLEConsole/BLEConsole.application) ### Requirements: Windows 10, BT 4.0 adapter ### Console commands: - **help**, **?** : show help information - **quit**, **q** : quit from application - **list**, **ls** [w] : show available BLE devices - **open** or <#> : connect to BLE device - **timeout** : show/change connection timeout, default value is 3 sec - **delay** : pause execution for a certain number of milliseconds - **close** : disconnect from currently connected device - **stat**, **st** : shows current BLE device status - **print**, **p** * : prints text and variables to stdout, where are variables are: * %id : BlueTooth device ID * %addr : device BT address * %mac : device MAC address * %name : device BlueTooth name * %stat : device connection status * %NOW, %now, %HH, %hh, %mm, %ss, %D, %d, %T, %t, %z : date/time variables - **format** [data_format], **fmt** : show/change display format, can be ASCII/UTF8/Dec/Hex/Bin - **set** or <#> : set current service (for read/write operations) - **read**, **r** ** : read value from specific characteristic - **write**, **w** ** : write value to specific characteristic - **subs** ** : subscribe to value change for specific characteristic - **unsubs** ** [all] : unsubscribe from value change for specific characteristic or unsubs all for all - **wait** : wait seconds for notification event on value change (you must be subscribed, see above) - **foreach** [device_mask] : starts devices enumerating loop - **endfor** : end foreach loop
- **if** : start conditional block dependent on function returning w/o error - **elif** : another conditionals block - **else** : if condition == false block - **endif** : end conditional block _* you can also use standard C language string formating characters like \\t, \\n etc._ _** could be "service/characteristic", or just a char name or # (for selected service)_ ### Example of usage: #### Lookup, connect and print all BLE devices names **BLEConsole.exe < cmd.txt**, where is cmd.txt is a simple text file with content: ``` foreach if open $ read #0/#0 close endif endfor ```