BLE
Overview
BLE works well for sending data to microcontrollers and other hardware.
In the
If you're using BLE with Syntien, you probably either (1) know the kind of data that the receiver expects, or (2) you've built your own microcontroller that can receive BLE data. If you're using a microcontroller that you've programmed yourself, you'll want to make sure that you set up a "write without response" characteristic. Syntien doesn't care whether or not the receiver acknowledges that it receives the data, so you'll get much lower latency than you will with a "write with response" characteristic.
A couple other settings to pay attention to:
Chunk Size: the number of bytes that you want to send in a single message. BLE devices can generally handle a maximum of 509 bytes per message, but this can be lower for some devices.
Framing: This is hidden under "advanced" settings. If you are sending really long messages that get split into multiple chunks, your receiver will want to know where each message starts and ends. You can add a constant value or indicators such as the total message size in bytes, current chunk number, etc. The framing bytes you should send depends entirely on what your receiver expects.
Ping: Also hidden under "advanced" settings. If your BLE receiver will break the connection after a period of inactivity, you may want to occasionally send a ping at the specified interval to keep the connection alive. You can specify the content of this message here as well.
For most use cases, those settings are probably not relevant. You'll probably only send two or three bytes of data at once – i.e. what button am I pressing, and what is its value. Even if you send a more sophisticated message with a larger amount of byte-encoded data, for most controls in Syntien 2, you probably won't get close to the chunk size.