Skip to content
Georgi Angelov edited this page Jul 2, 2019 · 36 revisions

Welcome to the platform-wizio wiki!

Create New Project

  • PlatformIO Home - New Project
    • Name: HelloWorld
    • Board: WizIO Simulator (search wizio, separate Windows / Linux )
    • Framework: Arduino

View project INI file

[env:emu-windows]
platform = wizio
board = windows
framework = arduino

;board_build.visual = 0 ; ( only console, empty by default )

;add other keys if you need
;build_flags = -D MQTT_MAX_PACKET_SIZE=1024 -D MQTT_KEEPALIVE=60

Windows experimental visual mode INI keys:

  • board_build.visual = 0 ; ( only console, empty default )
  • board_build.visual = 1 ; ( only visual )
  • board_build.visual = 2 ; ( console and visual )

Source code

#include <Arduino.h>

void setup() {
  // Serial.begin(115200); // as console not need baudrate, not need for console
  Serial.println("Hello World");
}

void loop() {
  delay(1000);
  Serial.println("Loop");
}

click [ BUILD ] or [ UPLOAD ] to RUN application

Project

Serial

By default Serial is declared without COM Port name and is used for debug console ( simple printf )

If you want to use Serial as COM Port:

For Linux HardwareSerial is not ready...

Serial.setName("\\\\.\\COM1"); // full path
Serial.begin(115200);

or declare own:

#include <HardwareSerial.h>
HardwareSerial Serial1("\\\\.\\COM1");

If name is NULL -> console

Library ClientSecure (SSL/TLS)

is not ready at 100%