Notice: This is a static archive of the Mobile Processing website, as the project is no longer significantly active. All forms and the Discourse boards are no longer functional, and the mobile website at http://wapmp.at/ is no longer available. Please visit the Mobile Processing Google Group for any remaining discussions and the Processing website for the latest news about Processing.
Libraries

Bluetooth



The Bluetooth library allows Mobile Processing sketches to send and receive data via Bluetooth wireless networks.

Bluetooth is a radio standard for short-range "personal area networks." The standard includes communication protocols for discovering other devices and the software services running on those devices.

Using this library, a Mobile Processing sketch running on a supported phone can connect to other Bluetooth devices as well as act as a service that other devices can connect to.
Bluetooth
This class provides the primary interface for discovering and establishing a Bluetooth network connection.

Bluetooth
cancel()
discover()
find()
start()
stop()

EVENT_DISCOVER_DEVICE
EVENT_DISCOVER_DEVICE_COMPLETED
EVENT_DISCOVER_SERVICE
EVENT_DISCOVER_SERVICE_COMPLETED
EVENT_CLIENT_CONNECTED


Device
Objects of this class represent nearby devices discovered on the Bluetooth network.

Device
name
address
cancel()
discover()


Service
Objects of this class represent software running on devices that can be connected to via the Bluetooth network.

Service
name
description
provider
device
connect()


Client
Client objects are used to communicate with other devices and services.

Client
read()
readBoolean()
readBytes()
readChar()
readInt()
readUTF()
skipBytes()
stop()
write()
writeBoolean()
writeChar()
writeInt()
writeUTF()