Previous Topic

Next Topic

Book Contents

Book Index

# ConnectEvent(EventHandler) hash function

Valid for use with hash command: HMI

This function specifies an Event handler that is to be called when the HMI reports it has become connected. The typical scenario is an Android device that is not normally connected to a SPLat controller. When the Android HMI app is first launched, the user has to enable BlueTooth, make sure it is paired with the BlueTooth on the SPLat, and select the SPLat BlueTooth to connect to. All this while the HMI in the Android is displaying a default screen. Once the BlueTooth connection is successfully established, the Android HMI app sends a special code to the SPLat. The ConnectEvent function detects this and does a GoSub to your Event handler. Your event handler then draws the initial screen applicable to your SPLat application.

The HMI function in SPLat/PC has a connect button that generates the same code to the SPLat.

Previous Topic

Next Topic