Skip to content

Instantly share code, notes, and snippets.

beebotteの使い方メモ.md

Beebotteとは?

(図は公式ドキュメントより)

BeebotteはMQTTブローカ+REST API+Web Socketを提供するサービス。 無料アカウントでは50000メッセージ/日まで使える。

//
// minirum.ino - ESPr IR(https://www.switch-science.com/catalog/2740/)で動作を確認したminirum.ino (2019/3/15)
//
// オリジナルはこちら
// https://github.com/9SQ/minIRum/blob/master/minirum/minirum.ino
//
// オリジナルからの修正点
// 1. POST時のContent-Typeをapplication/jsonに変更 (最近のライブラリだとこれを指定しないとreq.length()==0になるっぽい?)
// 2. 長いコードを受信するためにタイムアウトを設定
//
@yoggy
yoggy / memo-librealsense-raspberrypi.md
Created March 9, 2019 12:12
librealsenseをRaspberry Pi上でコンパイルする試み.md
$ diff -u main/main.c.org main/main.c
--- main/main.c.org     2019-01-17 21:45:21.789814800 +0900
+++ main/main.c 2019-01-17 22:06:08.603979600 +0900
@@ -15,6 +15,8 @@
 #include "esp_event_loop.h"
 #include "esp_http_server.h"

+#include <lwip/sockets.h>
+

static const char* TAG = "camera";

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yoggy
yoggy / polyline.pde
Created July 2, 2018 14:33
polyline_reduce_test.pde
//
// polyline.pde
//
// Copyright (c) 2018 yoggy <yoggy0@gmail.com>
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php;
//
import java.util.*;
class Polyline {
@yoggy
yoggy / minirum.ino
Last active June 19, 2018 12:27
ESPr IR ( https://www.switch-science.com/catalog/2740/ ) で動作を確認したminirum.ino
//
// minirum.ino - ESPr IR(https://www.switch-science.com/catalog/2740/)で動作を確認したminirum.ino
//
// オリジナルはこちら
// https://github.com/9SQ/minIRum/blob/master/minirum/minirum.ino
//
// require
// https://github.com/markszabo/IRremoteESP8266
// https://github.com/interactive-matter/aJson (注意:1.8.5だとaJsonStream::flush()の宣言を修正する必要あり)
//
//
// m5stack_adc_test.ino
//
// Copyright (c) 2018 yoggy <yoggy0@gmail.com>
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php;//
//
#include <M5Stack.h>
void setup() {
size(1024, 500);
background(16,64,128);
noStroke();
fill(32,32,128);
float h = 51;
for (int y = 1; y < height; y += h) {
float w = y % 41 + 20;
for (int x = 0; x < width; x += w) {