t6 Features > Source

Source

Sources are the Arduino sketches that can be uploaded to Objects using Over The Air (OTA) library. t6 is able to create Arduino esp8266 sketches, build them and upload them directly to nodeMCU Arduino board using Wifi and OTA library on port 2866. This feature is at an early stage and is not fully released. Use it at your own risk :-).

Source

Deploying your Arduino source code to multiple Objects

Preparing the Arduino board to use OTA

The ESP and the computer must be connected to the same network. First of all, the OTA library and a basic code must be uploaded manually to the Arduino Board.

Create Source Arduino code on t6

From t6 UI you can add any Source in the appropriate t6 section in the menu:

source-menu

Preparing the Objects

Objects using OTA require to have multiple additional attributes: ipv4 (this one is easy, it is a valid ip adress), a source_id (it must refers to a valid source_id from t6 platform), a source_version_id (by default version should be “0”) and a valid FQBN (a string using the following format) : esp8266com:esp8266:d1:xtal=80,vt=flash,exception=disabled,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=460800

FQBN parameters:

    UploadTool:  (Upload Tool)
             esptool    => Serial
              espota    => OTA

    BoardModel:  (Model)
               primo    => Primo
       starottodeved    => Star OTTO
        unowifideved    => Uno WiFi

    baud:  (Upload Speed)
              115200    => 115200
                9600    => 9600
               57600    => 57600
              230400    => 230400
              256000    => 256000
              460800    => 460800
              512000    => 512000
              921600    => 921600

    xtal:  (CPU Frequency)
                  80    => 80 MHz
                 160    => 160 MHz

    CrystalFreq:  (Crystal Frequency)
                  26    => 26 MHz
                  40    => 40 MHz

    eesz:  (Flash Size)
                512K    => 512K (no SPIFFS)
              512K32    => 512K (32K SPIFFS)
              512K64    => 512K (64K SPIFFS)
             512K128    => 512K (128K SPIFFS)
                  1M    => 1M (no SPIFFS)
                1M64    => 1M (64K SPIFFS)
               1M128    => 1M (128K SPIFFS)
               1M144    => 1M (144K SPIFFS)
               1M160    => 1M (160K SPIFFS)
               1M192    => 1M (192K SPIFFS)
               1M256    => 1M (256K SPIFFS)
               1M512    => 1M (512K SPIFFS)
                  2M    => 2M (no SPIFFS)
               2M128    => 2M (128K SPIFFS)
               2M256    => 2M (256K SPIFFS)
               2M512    => 2M (512K SPIFFS)
                2M1M    => 2M (1M SPIFFS)
                  4M    => 4M (no SPIFFS)
                4M1M    => 4M (1M SPIFFS)
                4M2M    => 4M (2M SPIFFS)
                4M3M    => 4M (3M SPIFFS)
                8M6M    => 8M (6M SPIFFS)
                8M7M    => 8M (7M SPIFFS)
              16M14M    => 16M (14M SPIFFS)
              16M15M    => 16M (15M SPIFFS)

    FlashMode:  (Flash Mode)
                dout    => DOUT (compatible)
                 dio    => DIO
                qout    => QOUT
                 qio    => QIO (fast)

    FlashFreq:  (Flash Frequency)
                  40    => 40MHz
                  80    => 80MHz

    ResetMethod:  (Reset Method)
                  ck    => ck
             nodemcu    => nodemcu
                none    => none
              dtrset    => dtrset
                  v2    => ESPduino-V2
                  v1    => ESPduino-V1

    ESPModule:  (Module)
               ESP12    => ESP12 (4M/1M SPIFFS)
            ESP07192    => ESP07 (1M/192K SPIFFS)

    dbg:  (Debug port)
            Disabled    => Disabled
              Serial    => Serial
             Serial1    => Serial1

    lvl:  (Debug Level)
            None____    => None
                 SSL    => SSL
             TLS_MEM    => TLS_MEM
         HTTP_CLIENT    => HTTP_CLIENT
         HTTP_SERVER    => HTTP_SERVER
          SSLTLS_MEM    => SSL+TLS_MEM
      SSLHTTP_CLIENT    => SSL+HTTP_CLIENT
      SSLHTTP_SERVER    => SSL+HTTP_SERVER
  TLS_MEMHTTP_CLIENT    => TLS_MEM+HTTP_CLIENT
  TLS_MEMHTTP_SERVER    => TLS_MEM+HTTP_SERVER
HTTP_CLIENTHTTP_SERVER    => HTTP_CLIENT+HTTP_SERVER
SSLTLS_MEMHTTP_CLIENT    => SSL+TLS_MEM+HTTP_CLIENT
SSLTLS_MEMHTTP_SERVER    => SSL+TLS_MEM+HTTP_SERVER
SSLHTTP_CLIENTHTTP_SERVER    => SSL+HTTP_CLIENT+HTTP_SERVER
TLS_MEMHTTP_CLIENTHTTP_SERVER    => TLS_MEM+HTTP_CLIENT+HTTP_SERVER
SSLTLS_MEMHTTP_CLIENTHTTP_SERVER    => SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER
                CORE    => CORE
                WIFI    => WIFI
         HTTP_UPDATE    => HTTP_UPDATE
             UPDATER    => UPDATER
                 OTA    => OTA
                 OOM    => OOM
COREWIFIHTTP_UPDATEUPDATEROTAOOM    => CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM
SSLTLS_MEMHTTP_CLIENTHTTP_SERVERCOREWIFIHTTP_UPDATEUPDATEROTAOOM    => SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER+CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM
     NoAssert-NDEBUG    => NoAssert-NDEBUG

    ip:  (lwIP Variant)
                lm2f    => v2 Lower Memory
                hb2f    => v2 Higher Bandwidth
                lm2n    => v2 Lower Memory (no features)
                hb2n    => v2 Higher Bandwidth (no features)
                lm6f    => v2 IPv6 Lower Memory
                hb6f    => v2 IPv6 Higher Bandwidth
                 hb1    => v1.4 Higher Bandwidth
                 src    => v1.4 Compile from source

    vt:  (VTables)
               flash    => Flash
                heap    => Heap
                iram    => IRAM

    exception:  (Exceptions)
            disabled    => Disabled
             enabled    => Enabled

    led:  (Builtin Led)
                   2    => 2
                   0    => 0
                   1    => 1
                   3    => 3
                   4    => 4
                   5    => 5
                   6    => 6
                   7    => 7
                   8    => 8
                   9    => 9
                  10    => 10
                  11    => 11
                  12    => 12
                  13    => 13
                  14    => 14
                  15    => 15

    wipe:  (Erase Flash)
                none    => Only Sketch
                 sdk    => Sketch + WiFi Settings
                 all    => All Flash Contents

Build Arduino file

Deploy Over The Air

Tagged on #resource,