diff --git a/.vscode/ipch/40f34ea280040acc/WEMOS_D1_MINI.ipch b/.vscode/ipch/40f34ea280040acc/WEMOS_D1_MINI.ipch index a75e31f..aafe3e0 100644 Binary files a/.vscode/ipch/40f34ea280040acc/WEMOS_D1_MINI.ipch and b/.vscode/ipch/40f34ea280040acc/WEMOS_D1_MINI.ipch differ diff --git a/bin/core/core.a b/bin/core/core.a index cdfeee0..7885714 100644 Binary files a/bin/core/core.a and b/bin/core/core.a differ diff --git a/node/package.json b/node/package.json index ad85fe9..2597e47 100644 --- a/node/package.json +++ b/node/package.json @@ -1,6 +1,6 @@ { "name": "wiot", - "version": "0.0.15", + "version": "0.0.16", "description": "An awesome iot system for web developers~", "main": "wiot.js", "scripts": { diff --git a/node/wiot.js b/node/wiot.js index 738db4b..ee8a0a2 100644 --- a/node/wiot.js +++ b/node/wiot.js @@ -2,7 +2,7 @@ * @Author: IoTcat (https://iotcat.me) * @Date: 2019-05-04 18:59:49 * @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 o = { @@ -231,7 +231,7 @@ var wiot_client = function (o_params) { }; 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 (JSON.parse(body).update) { if (o.hint) console.log('wIoT - ' + o.MAC + ': New Version Available!! OTA Updating..');