Jump to content

Component: MIAC Bluetooth (MIAC: Addon Modules)

From Flowcode Help
Revision as of 14:23, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author
Version 1.0
Category MIAC: Addon Modules


MIAC Bluetooth component

Bluetooth Addon for MIAC System

Component Pack

FREE

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

BluetoothCount
Returns the number of bytes waiting to be read from the receive buffer 
- BYTE Return


MIAC_Module_SetData
 
- BYTE Count
 
- BYTE D0
 
- BYTE D1
 
- BYTE D2
 
- BYTE D3
 
- BYTE D4
 
- BYTE D5
 
- VOID Return


BluetoothSendString
send string to Bluetooth module 
- STRING Str
 
- VOID Return


MIAC_Module_Init
 
- UINT CAN_ID
 
- VOID Return


MIAC_Module_GetData
 
- BYTE Index
 
- BYTE Return


MIAC_Module_Message
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- BYTE Return


MIAC_Module_WR
 
- UINT CAN_ID
 
- UINT CMD_ID
 
[[File:]] - Count
 
[[File:]] - Start
 
[[File:]] - More
 
- VOID Return


BluetoothChangeBaud
Changes the Bluetooth communication baud rate: 1 = 1200, 2 = 2400, 3 = 4800, 4 = 9600, 5 =19200, 6 =38400, 7 = 57600, 8 = 115200 (Applies to HC-06 module only)  
- BYTE Baud
New baud rate. 1=1200, 4=9600, 6=38400, 8=115200 
- VOID Return


BluetoothSetPin
Changes the pincode to a new value. The passcode is four digits, e.g. 1234 (Applies to HC-06 module only) 
- STRING Pincode
New four digit pincode 
- BYTE Return


LED_Control
Sets the indicator LED On (State=1) or Off (State=0) 
- BYTE State
 
- VOID Return


MIAC_Module_PushData
 
- BYTE Data
 
- VOID Return


BluetoothSetName
Changes the module Name to a new value. (Applies to HC-06 module only)  
- STRING Name
New four digit passcode 
- BYTE Return


DigitalOutput
Set a Terminal Output to High (Value=1) or Low (Value=0) 
- BYTE Terminal
 
- BYTE Value
 
- BYTE Return


BluetoothRead
Read one character from the Bluetooth module receive buffer. Returns 0 if nothing in the receive buffer 
- BYTE Return


MIAC_Module_GetAck
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- UINT TimeOut
 
- BYTE Return


BluetoothInitialize
Initializes the Bluetooth module (enables buffered receive mode) 
- VOID Return


AnalogInput
Read the ADC value of a Terminal Returns 12 bit ADC reading 
- BYTE Terminal
Terminal number to be read 
- UINT Return


BluetoothSend
Sends a character to the Bluetooth module 
- BYTE Character
Character (Byte) to send 
- VOID Return


Initialize
Forces a software reset on the module and enables buffered receive. 
- VOID Return


DigitalInput
Read the value of a terminal  
- BYTE Terminal
 
- BYTE Return



Property reference

Properties
Module Type
 
Module Address
 
Baud Rate
 
Connections
Simulations