This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from aiohttp import ClientSession | |
from RFM69 import Radio, FREQ_433MHZ | |
async def call_API(url, packet): | |
async with ClientSession() as session: | |
print("Sending packet to server") | |
async with session.post(url, json=packet.to_dict('%c')) as response: | |
response = await response.read() | |
print("Server responded", response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ********************************************************************************** | |
// | |
// Test RFM69 Radio. | |
// | |
// ********************************************************************************** | |
#include <RFM69.h> // https://www.github.com/lowpowerlab/rfm69 | |
#include <RFM69_ATC.h> // https://www.github.com/lowpowerlab/rfm69 | |
#include <SPI.h> // Included with Arduino IDE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding:UTF-8 | |
# ============================================================================= | |
# This fabfile will turn a Raspberry Pi into a webserver, | |
# See http://www.kittley.com/2018/04/04/blog-sdstore-and-pi/ for more details. | |
# ============================================================================= | |
import socket | |
from os import sep, remove | |
from fabric.api import cd, lcd, task |