An outline of the contents of the Beta release of the Onion Cloud SDK
- Intro to the Onion Cloud
- Using the SDK
- What it can teach you
- What you will be able to accomplish with it
#!/bin/sh | |
printf "%s" "Connecting to WiFi" | |
wifisetup add -ssid Network-SSID -encr wpa2 -password XXXXXXXX | |
printf "%s" "Waiting for Internet" | |
while ! ping -c 1 -n -w 1 www.google.com &> /dev/null | |
do | |
printf "%c" "." | |
done |
#!/bin/sh /etc/rc.common | |
# Copyright (C) 2019 Onion Corporation | |
START=90 | |
USE_PROCD=1 | |
start_service() { | |
procd_open_instance | |
procd_set_param command python3 /root/location.py |
import time | |
import os | |
# Import the ADC Expansion module. | |
from OmegaExpansion import AdcExp | |
# create ADC Expansion object | |
adc = AdcExp.AdcExp() | |
#infinite loop to read sensors and display data |
#!/bin/sh /etc/rc.common | |
# Copyright (C) 2018 Onion Corporation | |
START=90 | |
USE_PROCD=1 | |
start_service() { | |
procd_open_instance | |
procd_set_param command [YOUR COMMAND HERE] |
#!/bin/sh | |
## insmod spi-gpio-custom bus%d=%d,%d,%d,%d,%d,%d,%d | |
## From OnionIoT/spi-gpio-driver: | |
## | |
# sprintf(cmd, SPI_DEV_INSMOD_TEMPLATE, params->busNum, params->deviceId, | |
# params->sckGpio, | |
# params->mosiGpio, | |
# params->misoGpio, |
#!/bin/bash | |
# define the usage | |
usage () { | |
echo "Arguments:" | |
echo " -toolchain <path to buildroot>" | |
echo " -lib \"<list of additional libraries to link in compile>\"" | |
echo "" | |
} |
ls -al -R /etc/dbus-1 | |
/etc/dbus-1: | |
drwxr-xr-x 4 root root 4096 Mar 15 01:18 . | |
drwxr-xr-x 1 root root 4096 Mar 15 01:18 .. | |
-rw-r--r-- 1 root root 2883 Sep 9 2015 session.conf | |
drwxr-xr-x 2 root root 4096 Sep 9 2015 session.d | |
-rw-r--r-- 1 root root 4177 Sep 9 2015 system.conf | |
drwxr-xr-x 2 root root 4096 Mar 15 01:18 system.d | |
/etc/dbus-1/session.d: |