Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

...

Introduction

The String Message Type is based on the Javascript implementation (Read more).

...

Example Data

  • Any

  • Text is a

  • String

...

Converts to

Message Type

Data

Digtial

if present converts to true, otherwise to false

Trigger

Always triggers

Tristate

Converts only -1,0 and 1 to a valid Tristate

Analog

Converts only Strings that fit into the 0, 4095 range and that correctly convert into a Number. Examples:

'iamaString' does not convert

'100' does convert

'5000' does not convert

Percent

Converts only Strings that fit into the 0, 100 range and that correctly convert into a Number. Examples:

'iamaString' does not convert

'50' does convert

'5000' does not convert

Temperature

Converts all Strings that are Numbers and converts strings correctly that have F (Fahrenheit) or C (celsius) as a suffix.

Distance

Converts all Strings that are Numbers and converts strings correctly that have I (inches) or cm (metric) as a suffix.

Humidity

Converts all Strings that can be parsed to a Float.

Infrared

Directly converts

Stepper

Converts all Strings that can be parsed to Integer and that have an even amount of characters

Servo

Converts all Strings that can be parsed to Integer and are in range. Uses the String for the Degree Setting.

Color

Directly converts hexadecimal Strings example: #FFFFFF

Is able to convert color names like:
teal, violet, red, brown etc.

Full List:

String Color Name Conversion List

Smartcolor

Just like the Color conversion. If multiple colors present like #FF0000#0000FF LEDs are turned on accordingly

7 Segment

Directly converts if string is a single character from 0-F

Display Message Type

Clears Display and shows Text on screen

PWM (Pulse Wave Modulation)

Directly converts numbers

Scaled Number

Parses String to Float if applicable and in range

Number

Parses String to Float if applicable

Motor

Parses String to Float that fit into Range (-255, 255)

Pressure

Converts all Strings that are Numbers and converts strings correctly that have inHg (inches per mercury) or p (pascal) as a suffix.

CO2

Parses String to Float

...

Info

Any Signal that is not mentioned on the table above should not be able to convert.

...

Debug View

In the Debug View values can be written to or read from the drivers on the Builder Base directly.

Info

The string message is not used in any driver at this point.