Skip to content

Instantly share code, notes, and snippets.

Tomo Watanabe tomovwgti

Block or report user

Report or block tomovwgti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomovwgti
tomovwgti / pub.py
Last active Aug 29, 2015
MQTT publish
View pub.py
#!/usr/bin/python
# Copyright (c) 2014 Roger Light <roger@atchoo.org>
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Distribution License v1.0
# which accompanies this distribution.
#
# The Eclipse Distribution License is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
@tomovwgti
tomovwgti / sub.py
Created Apr 18, 2014
MQTT subscribe
View sub.py
#!/usr/bin/python
# Copyright (c) 2010-2013 Roger Light <roger@atchoo.org>
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Distribution License v1.0
# which accompanies this distribution.
#
# The Eclipse Distribution License is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
View gist:8781055
{
"auto_feed_url": "https://api.xively.com/v2/feeds/1495248008.json",
"created": "2014-01-28T01:09:26.992036Z",
"creator": "https://xively.com/users/tomo_watanabe",
"datastreams": [
{
"at": "2014-02-03T09:42:19.028303Z",
"current_value": "33",
"id": "Humidity",
"max_value": "34.0",
@tomovwgti
tomovwgti / led.js
Created Dec 25, 2013
きんねこさんへ
View led.js
var b = require('bonescript');
b.pinMode('USR0', b.OUTPUT);
b.pinMode('USR1', b.OUTPUT);
b.pinMode('USR2', b.OUTPUT);
b.pinMode('USR3', b.OUTPUT);
b.digitalWrite('USR0', b.HIGH);
b.digitalWrite('USR1', b.HIGH);
b.digitalWrite('USR2', b.HIGH);
@tomovwgti
tomovwgti / Master.c
Last active Jan 1, 2016
TOCOS TWE-LiteのシリアルアプリApp_Uart の受信側のプロンプトを無くします。
View Master.c
if (len == 0) {
// ハンドル名なし
// vfPrintf(&sSerStream, LB"[%08X:%d] ", sSerSeqRx.u32SrcAddr, sSerSeqRx.u8ReqNum);
sSerCmdOut.u16len -= 2; // 本文の長さに設定
} else {
// ハンドル名あり
// vfPrintf(&sSerStream, LB"[%s:%d] ", &sSerCmdOut.au8data[i+1], sSerSeqRx.u8ReqNum);
sSerCmdOut.u16len = i; // 本文の長さに設定
}
You can’t perform that action at this time.