
OpenWRT
天生爱做梦
这个作者很懒,什么都没留下…
展开
-
openwrt上的mqtt client的使用
由于最近在折腾openwrt,需要通过mqtt上传一些数据,网上搜了一圈,使用mosquitto的最多,因为mosquiito官方支持openwrt,不过在宿主机上进行交叉编译的时候出各种问题,想到之前同样用过paho的mqtt client,结果让人惊喜,一次性就编译过了,并且能在openwrt上成功运行。步骤也非常简单,下面分享一下1、下载paho mqtt到宿主机2、paho提供了提供了...原创 2018-12-15 14:11:42 · 6134 阅读 · 1 评论 -
OpenWrt CGI使用指南
CGI默认在/www/cgi-bin文件中,创建一个新的CGI程序helloCGI。代码如下#!/usr/bin/lua-- HTTP headerprint("Content-Type: text/html")print("") -- An empty line-- bodyprint("<h1>Hello CGI</h1>")prin...原创 2019-02-07 15:12:54 · 3509 阅读 · 0 评论