AppyBuilder
  • AppyBuilder Introduction
  • Release Notes
  • Terms of Service
  • AppyBuilder Editors
    • Design Editor
    • Blocks Editor
    • Components
  • Live Testing
  • Components
    • Reference
      • User Interface
        • Button
        • Checkbox
        • Chronometer
        • DatePicker
        • FloatingButton
        • GalleryViewer
        • GridView
        • Image
        • Label
        • ListPicker
        • ListPickerCustom
        • ListView
        • ListViewCustom
        • Notifier
        • PasswordTextBox
        • ProgressBar
        • RatingBar
        • Slider
        • Spinner
        • Switch
        • TextBox
        • Toggler
        • WebViewer
        • TimePicker
        • LinedTextBox
      • Effects
        • Decoration
        • Sidebar
        • Snackbar
      • Layout
        • Horizontal Arrangement
        • Horizontal Scroll Arrangement
        • Table Arrangement
        • Vertical Arrangement
        • Vertical Scroll Arrangement
      • Drawing and Animation
        • Ball
        • Canvas
        • Image Sprite
      • Maps
        • Circle
        • FeatureCollection
        • LineString
        • Map
        • Marker
        • Polygon
        • Rectangle
      • Media
        • Camcorder
        • Camera
        • ImagePicker
        • Player
        • Sound
        • SoundRecorder
        • SpeechRecognizer
        • TextToSpeech
        • VideoPlayer
        • YandexTranslate
      • Connectivity
        • ActivityStarter
        • BluetoothClient
        • NetworkManager
        • Web
        • WiFiManager
      • LegoMindStorms
        • Ev3ColorSensor
        • Ev3Commands
        • Ev3GyroSensor
        • Ev3Motors
        • Ev3Sound
        • Ev3TouchSensor
        • Ev3UI
        • Ev3UltraSonicSensor
        • NxtDirectCommands
        • NxtDrive
        • NxtLightSensor
        • NxtTouchSensor
        • Ev3ColorSensor
      • Storage
        • Airtable
        • File
        • FirebaseDB
        • FTPManager
        • FusionTableControl
        • TinyDB
        • TinyWebDB
      • Sensors
        • Accelerometersensor
        • BarcodeScanner
        • BatteryManager
        • Clock
        • Gyroscopesensor
        • LightSensor
        • LocationSensor
        • MagneticFieldSensor
        • MemoryInfo
        • NearField
        • OrientationSensor
        • Pedometer
        • ProximitySensor
        • PressureSensor
        • SoundSensor
        • TemperatureSensor
        • ProximitySensor
      • Social
        • ContactPicker
        • EmailPicker
        • PhoneCall
        • PhoneNumberPicker
        • Sharing
        • Texting
        • Twitter
      • Experimental
        • CloudDB
      • Visualization
        • GoogleMap
        • XYChart
      • Advanced
        • KitchenSink
        • OneSignalPush
        • PushNotification
        • SQLite
      • Monetize
        • AdAmazon
        • AdAmazonInterstitial
        • AdMob
        • AdMobInterstitial
        • AdMobRewardedVideo
        • InAppBilling
        • MMediaInterstitial
  • Tutorials
    • Openstreet Map
    • OneSignalPush
    • Creating E-book
    • Basic
      • Simulating Progress Bar
      • Creating Splash Screen
      • Adding Privacy Policy
      • Package Name
      • Beginner - Talk to Me app
      • Beginner Tutorial
    • Animation
      • Animation & Collision Part I
      • Animation & Collision Part II
    • Monetization
      • AdMob Banner
      • AdMob Interstitial
      • AdMob Rewarded Video
      • Increasing Monetization Revenue
    • Using RadioButtons
    • keystore
    • Firebase - Advanced
  • Extensions
  • Concept Cards
    • Bouncing Sprites
    • Sprite Timed Movement
    • Sprite Movement on Timer
    • Adding Sound
    • Speech Recognition
    • Random Numbers
    • Fling Movement
    • Movement with Sensors
    • Drawing on Canvas
    • Multiple Screens
    • Creating Custom Colors
    • Movement with Buttons
    • Shaking Phone
    • Collision Detection
    • Dragging A Sprite
  • Advanced
    • Source File Structure
  • Code Editor
Powered by GitBook
On this page
  • Properties
  • AddressesAndNames
  • Available
  • CharacterEncoding
  • DelimiterByte
  • Enabled
  • HighByteFirst
  • IsConnected
  • Secure
  • Events
  • Methods
  • BytesAvailableToReceive()
  • Connect(text address)
  • ConnectWithUUID(text address, text uuid)
  • Disconnect()
  • IsDevicePaired(text address)
  • ReceiveSigned1ByteNumber()
  • ReceiveSigned2ByteNumber()
  • ReceiveSigned4ByteNumber()
  • ReceiveSignedBytes(number numberOfBytes)
  • ReceiveText(number numberOfBytes)
  • ReceiveUnsigned1ByteNumber()
  • ReceiveUnsigned2ByteNumber()
  • ReceiveUnsigned4ByteNumber()
  • ReceiveUnsignedBytes(number numberOfBytes)
  • Send1ByteNumber(text number)
  • Send2ByteNumber(text number)
  • Send4ByteNumber(text number)
  • SendBytes(list list)
  • SendText(text text)
  1. Components
  2. Reference
  3. Connectivity

BluetoothClient

Bluetooth client component

Properties

AddressesAndNames

The addresses and names of paired Bluetooth devices

Available

Whether Bluetooth is available on the device

CharacterEncoding

DelimiterByte

Enabled

Whether Bluetooth is enabled

HighByteFirst

IsConnected

Secure

Whether to invoke SSP (Simple Secure Pairing), which is supported on devices with Bluetooth v2.1 or higher. When working with embedded Bluetooth devices, this property may need to be set to False. For Android 2.0-2.2, this property setting will be ignored.

Events

none

Methods

BytesAvailableToReceive()

Returns an estimate of the number of bytes that can be received without blocking

Connect(text address)

Connect to the Bluetooth device with the specified address and the Serial Port Profile (SPP). Returns true if the connection was successful.

ConnectWithUUID(text address, text uuid)

Connect to the Bluetooth device with the specified address and UUID. Returns true if the connection was successful.

Disconnect()

Disconnect from the connected Bluetooth device.

IsDevicePaired(text address)

Checks whether the Bluetooth device with the specified address is paired.

ReceiveSigned1ByteNumber()

Receive a signed 1-byte number from the connected Bluetooth device.

ReceiveSigned2ByteNumber()

Receive a signed 2-byte number from the connected Bluetooth device.

ReceiveSigned4ByteNumber()

Receive a signed 4-byte number from the connected Bluetooth device.

ReceiveSignedBytes(number numberOfBytes)

Receive multiple signed byte values from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.

ReceiveText(number numberOfBytes)

Receive text from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.

ReceiveUnsigned1ByteNumber()

Receive an unsigned 1-byte number from the connected Bluetooth device.

ReceiveUnsigned2ByteNumber()

Receive a unsigned 2-byte number from the connected Bluetooth device.

ReceiveUnsigned4ByteNumber()

Receive a unsigned 4-byte number from the connected Bluetooth device.

ReceiveUnsignedBytes(number numberOfBytes)

Receive multiple unsigned byte values from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.

Send1ByteNumber(text number)

Send a 1-byte number to the connected Bluetooth device.

Send2ByteNumber(text number)

Send a 2-byte number to the connected Bluetooth device.

Send4ByteNumber(text number)

Send a 4-byte number to the connected Bluetooth device.

SendBytes(list list)

Send a list of byte values to the connected Bluetooth device.

SendText(text text)

Send text to the connected Bluetooth device.

PreviousActivityStarterNextNetworkManager

Last updated 7 years ago