obniz Docs
  • obniz.com
  • Developer's Console
  • Guides
  • Reference

obniz.js, Device Control

  • Overview
  • Class Obniz
    • Obniz.M5StickC
    • Obniz.M5StackBasic
  • Connection
    • Disconnection And Reset
    • Multiple Connection
    • Local Connect
    • Closed Network
    • compatibility
  • Wait and Repeat
  • PartsLibrary
    • Import hosted parts
    • Create owned parts
  • IO
    • Output
    • Input
    • DriveMethod
    • Pull-up-down
  • IO-Animation
  • AD
  • PWM
    • Modulation
  • UART
    • Send
    • Receive
  • SPI
    • Master Read/Write
  • I2C
    • Master Read/Write
    • Slave Read
  • LogicAnalyzer
  • Measurement
  • Display
  • Switch
  • Sleep
  • TCP
  • Wi-Fi
  • BLE
    • Central: Scan
    • Central: Advanced conditional scanning
    • Central: Connection
    • Central: Pairing
    • Central: Services and characteristics
    • Central: Read and Write
    • Central: Receiving change notifications
    • Peripheral: Advertisement
    • Peripheral: Services and characteristics registration
    • Peripheral: Monitoring update
    • Peripheral: Update values
    • Peripheral: Notification of value change
  • Connected Network
  • Metadata
  • Messaging
  • App
  • Plugin
  • Changelog
obniz Docs Reference obniz.js, Device Control UART Send

Send

Use uart.send() to send data in the started UART.

// Javascript Example

var uart = obniz.getFreeUart();
uart.start({tx: 0, rx: 1, baud:9600 });
uart.send("Hello");
uart.send([0x00, 0x01, 0x02]);

uart.send() does not wait for sending to be finished. UART also does not check if the other party has received the signal, so it will not result in error even if it is not connected with the other party.

Doc navigation

Receive →
© 2020 obniz Docs
IoT for all developer with just obniz | iot.obniz.com

タイトル

本文