Installing Ubuntu 19.10 with latest docker, docker-compose.
Install latest Ubuntu 19.10 and then upgrade to latest
sudo apt-get update
FROM python:3.12-slim as production | |
ENV DEBIAN_FRONTEND="noninteractive" | |
SHELL ["/bin/bash", "-c"] | |
WORKDIR /app | |
RUN set -eux; \ | |
apt-get update && \ |
sudo apt-get update | |
sudo apt-get upgrade | |
# Store Github credentials | |
git config --global credential.helper store | |
git clone ... | |
# Install Python | |
sudo apt-get install -y python | |
sudo apt-get install python3.8 |
;; .emacs.d/init.el | |
;; =================================== | |
;; MELPA Package Support | |
;; =================================== | |
;; Enables basic packaging support | |
(require 'package) | |
;; Adds the Melpa archive to the list of available repositories | |
(add-to-list 'package-archives |
import argparse | |
import time | |
import sys | |
from iotile.core.hw import HardwareManager | |
def build_parser(): | |
parser = argparse.ArgumentParser(description="Print broadcast readings from a specific device") | |
parser.add_argument('-d', '--dev', type=lambda x: int(x, 0), help="Optional, the UUID of the device you want to see broadcasts from (0x21 for example)") | |
parser.add_argument('-i', '--interval', type=float, default=1.0, help="The minimum interval in seconds between two reported readings (only applies when -d is given), defaults to 1s") |
The public facing documentation for the IOTile Core Tools is https://coretools.readthedocs.io/en/latest/introduction.html, but things change a little when you have access to a real device.
With a BLED112 dongle, and access to the proper packages, you can communicate with a real device.
After installation, the iotile operations can be run from the OS command-line, or by using the IOTile Shell.
def get(event, context): | |
response = _get_error_responce('Incorrect URL format: Use /foobar/<a>/<b>/?type=<url/file>') | |
if 'queryStringParameters' in event and 'pathParameters' in event: | |
if event['pathParameters'] and 'a' in event['pathParameters'] and 'b' in event['pathParameters']: | |
a = event['pathParameters']['a'] | |
b = event['pathParameters']['b'] |