Uniot Docs
  • Introduction
  • Guides
    • Getting Started
    • Uniot Badge
    • Device Network
  • Foundations
    • Edge Logic Deployment
  • General Concepts
    • Primitives
    • Scripting
  • Platform
    • Dashboard
    • Sandbox
      • Visual Editor
        • Special
        • Logic
        • Math
        • Loops
        • Text
        • Variables
        • Functions
        • Primitives
      • Logger
      • Emulator
      • Control Panel
  • Advanced
    • Uniot Core
      • Scheduler
        • TaskScheduler
        • IExecutor
        • ISchedulerConnectionKit
        • Task
        • SchedulerTask
      • AppKit
        • AppKit
        • LispDevice
        • LispPrimitives
        • TopDevice
      • CBORWrapper
        • CBORObject
        • COSE
        • COSEMessage
        • ICOSESigner
      • Date
        • Date
        • SimpleNTP
      • EventBus
        • EventBus
        • IEventBusConnectionKit
        • DataChannels
        • EventEmitter
        • EventListener
        • EventEntity
        • CallbackEventListener
      • Hardware
        • Button
      • LispWrapper
        • DefaultPrimitives
        • LispHelper
        • PrimitiveExpeditor
        • unLisp
      • MQTTWrapper
        • CallbackMQTTDevice
        • MQTTDevice
        • MQTTKit
        • MQTTPath
      • Network
        • ConfigCaptivePortal
        • NetworkController
        • NetworkScheduler
      • Register
        • GpioRegister
        • ObjectRegister
        • ObjectRegisterRecord
        • Register
        • RegisterManager
        • RegisterManagerProxy
      • Storage
        • CBORStorage
        • CrashStorage
        • Storage
        • WifiStorage
      • Utils
        • Array
        • Bytes
        • ClearQueue
        • IterableQueue
        • LimitedQueue
        • GlobalBufferMemoryManager
        • Map
        • Singleton
        • TypeId
      • Credentials
    • Uniot Lisp
      • Language Description
      • Embedding Instructions
  • API
    • MQTT Convention
Powered by GitBook
On this page
  • value
  • quote
  • eval
  • print
  1. Platform
  2. Sandbox
  3. Visual Editor

Text

PreviousLoopsNextVariables

Last updated 2 months ago

Text section provides blocks designed to handle and transform textual data, as well as integrate text-based input and output into your scripts. This section empowers you to:

  • Represent fixed pieces of text for use in messages, labels, or conditional checks.

  • Convert numbers into strings, making it easier to display values or store them as text.

  • Evaluate text-based expressions, bridging the gap between string manipulation and numeric calculations.

  • Print logs and messages to the MQTT broker, simplifying the debugging and monitoring of your device’s behavior.

value

Creates a text string that can be used in your program.

Parameters:

  • Text Value (string)

Returns:

  • String: The provided text.

Example:

quote

Takes an expression (or value) and converts it into a text string.

Parameters:

  • Expression: A value or a mathematical expression that will be evaluated and converted into a string.

Returns:

  • String: The expression, converted to a text format.

eval

Evaluates an expression from text.

Parameters:

  • Expression: A text string that contains an expression or a value.

Returns:

  • Any: The result of the evaluated expression.

print

Sends a log to the MQTT broker. Logs appear on the device details page.

Parameters:

  • Message: A text string that will be sent to the MQTT broker.

Example:

Text value creation
Logging messages