Getting Started Documentation Tutorials API GitHub
Studs

Studs

A Fantom framework for creating rock solid embedded IoT applications

Documentation Tutorials GitHub

$ fan studs init hello
Init project: ~/hello [Yn]

$ cd hello
$ src/build.fan
compile [hello]
  Compile [hello]
    FindSourceFiles [1 files]
    WritePod [file:~/hello/lib/fan/hello.pod]
BUILD SUCCESS [34ms]!

$ fan studs asm
Assemble [rpi3-1.4]
  Downloading rpi3 system... 100%
  Install rpi3 system...
  Build linux-armv6-vfp-hflt jre [compact1]...
  Stage rootfs...
  Merge rootfs...
  Assemble firmware image...
  Signing firmware image...
  Release:
    ~/hello/studs/releases/hello-1.0.0-rpi3.fw [25MB]
ASM SUCCESS [24.77sec]!

$ fan studs burn
Use 15GB memory card found at /dev/rdisk3? [Yn]
Burning hello-1.0.0-rpi3.fw to /dev/rdisk3...
|====================================| 100% (25 / 25) MB
Success!
Elapsed time: 2.034s

$ fan studs push 192.168.1.100
Pushing hello-1.0.0-rpi3.fw to 192.168.1.100...
Firmware upload successful. Now rebooting device to apply.