Ref : http://www.it-slav.net/blogs/2011/04/02/open-ssh-on-the-wan-inteface-openwrt/
config rule
option src wan
option dest_port 22
option target ACCEPT
option proto tcp
reset firewall
/etc/init.d/firewall restart
接下來就可以用 putty 軟體用 ssh的方式連進來.
2017年2月11日 星期六
mqtt install
Ref : http://www.slideshare.net/EllingtonSu/mqtt-61900840
Ref : http://rocksaying.tw/archives/2016/MQTT-3-Python-clients.html
Ref : https://makerpro_taiwan.gitbooks.io/lass-7688-duo-pm2-5-remote-controller/content/cong_linux_duan_qu_de_mqtt_zi_liao_fen_feng_chuan_.html
default port : 1883/ 8883 (TLS)
先確定有沒有pip
easy_install pip
opkg install python-openssl
pip install paho-mqtt
Ref : http://rocksaying.tw/archives/2016/MQTT-3-Python-clients.html
Ref : https://makerpro_taiwan.gitbooks.io/lass-7688-duo-pm2-5-remote-controller/content/cong_linux_duan_qu_de_mqtt_zi_liao_fen_feng_chuan_.html
default port : 1883/ 8883 (TLS)
先確定有沒有pip
easy_install pip
opkg install python-openssl
pip install paho-mqtt
===============================================
pub
================================================
中間的server 是 Broker...
device 自己可以當 Publusher (類似Tx)... 也可以當 Subscriber(類似Rx)
2017年2月7日 星期二
7688 用指令切換 sta mode
Ref : https://medium.com/maker-cup/smart-7688-duo-ap-station-mode-command%E7%9A%84%E5%88%87%E6%8F%9B%E8%88%87%E8%A8%AD%E5%AE%9A-e8da97b7b332#.3hpmjvld7
# uci set wireless.sta.ssid=MyAP (AP的SSID) # uci set wireless.sta.encryption=psk2 (加密模式) # uci set wireless.sta.key=12345678 (AP密碼) # uci set wireless.sta.disabled=0 (將stationMode打開) # uci commit # wifi
訂閱:
文章 (Atom)