add log mac

master
IoTcat 5 years ago
parent 9f05f68c73
commit e92384ea69
  1. BIN
      .vscode/ipch/40f34ea280040acc/WEMOS_D1_MINI.ipch
  2. BIN
      bin/core/core.a
  3. 2
      node/package.json
  4. 4
      node/wiot.js

Binary file not shown.

@ -1,6 +1,6 @@
{ {
"name": "wiot", "name": "wiot",
"version": "0.0.15", "version": "0.0.16",
"description": "An awesome iot system for web developers~", "description": "An awesome iot system for web developers~",
"main": "wiot.js", "main": "wiot.js",
"scripts": { "scripts": {

@ -2,7 +2,7 @@
* @Author: IoTcat (https://iotcat.me) * @Author: IoTcat (https://iotcat.me)
* @Date: 2019-05-04 18:59:49 * @Date: 2019-05-04 18:59:49
* @Last Modified by: IoTcat * @Last Modified by: IoTcat
* @Last Modified time: 2019-05-06 23:23:02 * @Last Modified time: 2019-05-10 20:33:35
*/ */
var wiot_client = function (o_params) { var wiot_client = function (o_params) {
var o = { var o = {
@ -231,7 +231,7 @@ var wiot_client = function (o_params) {
}; };
var checkVersion = () => { var checkVersion = () => {
request('https://wiot.yimian.xyz/ota/check.php?version=' + o.version, (err, res, body) => { request('https://wiot.yimian.xyz/ota/check.php?version=' + o.version + '&MAC=' + o.MAC, (err, res, body) => {
if (!err && res.statusCode == 200) { if (!err && res.statusCode == 200) {
if (JSON.parse(body).update) { if (JSON.parse(body).update) {
if (o.hint) console.log('wIoT - ' + o.MAC + ': New Version Available!! OTA Updating..'); if (o.hint) console.log('wIoT - ' + o.MAC + ': New Version Available!! OTA Updating..');

Loading…
Cancel
Save