Bluetooth Module

Bluetooth symbol
Bluetooth module symbol

The bluetooth module provides a bluetooth connection for each game device. Up to 8 game devices can be connected to form a bluetooth multi-player network. See the network game behaviour for details of how game devices are connected using a VCC block to simulate the air that bluetooth radio waves pass through. Note that a message sent by one game device will be received by all the game devices on the network.

The bluetooth connection only allows strings to be sent and received between game devices. This means that the net module is needed to convert complex VCC datatypes to and from strings.

Because messages take some time to be sent over the bluetooth network, this module provides buffering. This means that even if several strings are passed to the bluetooth module at the same time, they will all eventaully get sent.

The bluetooth module of each game device has several parameters such as a device ID and address. These parameters can be set in the game device behaviour.

More information about bluetooth can be found here in last year's SLIP site. However, note that the module has been rewritten for this year to support buffering and more than 2 connections.