{"id":42182,"date":"2019-02-07T10:45:35","date_gmt":"2019-02-07T01:45:35","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=42182"},"modified":"2019-02-15T08:59:57","modified_gmt":"2019-02-14T23:59:57","slug":"flashair%e3%81%a7%e3%80%81%e5%91%a8%e5%9b%b2%e3%81%aewifi%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%9d%e3%82%a4%e3%83%b3%e3%83%88%e3%82%92%e6%a4%9c%e7%b4%a2%e3%81%97%e3%81%a6%e3%80%81","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=42182","title":{"rendered":"FlashAir\u3067\u3001\u5468\u56f2\u306eWiFi\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u691c\u7d22\u3057\u3066\u3001\u305d\u306e\u30ed\u30b0\u3092\u53d6\u308b\u30bd\u30d5\u30c8\u3092\u4f5c\u3063\u3066\u307f\u305f &#8211; \u305d\u306e1"},"content":{"rendered":"<p>FlashAir\u3067\u3001\u5468\u56f2\u306eWiFi\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u691c\u7d22\u3057\u3066\u3001\u305d\u306e\u30ed\u30b0\u3092\u53d6\u308b\u30bd\u30d5\u30c8\u3092\u4f5c\u3063\u3066\u307f\u3066\u3044\u308b\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u4e00\u5b9a\u6642\u9593\u6bce\u306b\u3001\u6642\u9593\u3068\u3001SSID\u3068<a href=\"https:\/\/www.google.co.jp\/search?hl=ja&#038;as_q=WiFi+RSSI&#038;as_epq=&#038;as_oq=&#038;as_eq=&#038;as_nlo=&#038;as_nhi=&#038;lr=&#038;cr=&#038;as_qdr=all&#038;as_sitesearch=&#038;as_occt=any&#038;safe=images&#038;as_filetype=&#038;as_rights=\">RSSI<\/a>\u3092\u8a18\u9332\u3059\u308b\u3068\u3044\u3046\u306e\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002<br \/>\n\u30ed\u30b0\u3092\u53d6\u3063\u305f\u3042\u3068\u3001\u305d\u306e\u30ed\u30b0\u3092\u89e3\u6790\u3057\u3066\u3001\u7121\u7ddaAP\u60c5\u5831\u304b\u3089\u7def\u5ea6\u7d4c\u5ea6\u3092\u63a8\u5b9a\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u52d5\u3055\u305b\u3066\u79fb\u52d5\u306e\u8ecc\u8de1\u3092\u51fa\u305b\u308b\u304b\u306a\u3042\u3001\u3068\u304b\u8003\u3048\u3066\u3044\u308b\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306fLua\u8a00\u8a9e\u3067\u66f8\u3044\u305f\u3002FlashAir W-04\u3067\u52d5\u304b\u3057\u3066\u3044\u308b\u3002<br \/>\ntest.lua\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067FlashAir\u306eSD\u30ab\u30fc\u30c9\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u5165\u308c\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlocal file = io.open(&quot;\/log.txt&quot;, &quot;a&quot;)\r\nfile:write(&quot;WiFi SSID Logging data\\r\\n&quot;)\r\nfile:write(&quot;---\\r\\n&quot;)\r\nfile:close()\r\nfa.SetCurrentTime(0x2821,0)\r\nhh=0\r\nmm=0\r\nss=0\r\nsleep(100)\r\nwhile true do\r\n\tfile = io.open(&quot;\/log.txt&quot;, &quot;a&quot;)\r\n\tfile:write(&quot;time , &quot;..hh..&quot;,&quot;..mm..&quot;,&quot;..ss..&quot;\\r\\n&quot;)\r\n\tcount = fa.Scan()\r\n\tfor i=0, (count-1), 1 do\r\n\t\tssid, other = fa.GetScanInfo(i)\r\n\t\tif ssid ~= &quot;&quot; then\r\n\t\t\tfile:write(&quot;SSID,&quot;..ssid..&quot;\\r\\n&quot;)\r\n\t\t\tfor key, val in pairs(other) do\r\n\t\t\t\tif key==&quot;RSSI&quot; then\r\n\t\t\t\t\tfile:write(&quot; RSSI,&quot;..val..&quot;\\r\\n&quot;)\r\n\t\t\t\tend\r\n\t\t\tend\r\n\t\tend\r\n\tend\r\n\tfile:write(&quot;---\\r\\n&quot;)\r\n\tfile:close()\r\n\tfat_time = lfs.attributes(&quot;\/log.txt&quot;)\r\n\thh = bit32.band (bit32.rshift(fat_time.modification, 11),0x1F);\r\n\tmm = bit32.band (bit32.rshift(fat_time.modification, 5),0x3F);\r\n\tss = bit32.band (fat_time.modification,0x1F)*2;\r\n\tsleep(1000*30)\r\nend\r\n<\/pre>\n<p><!--more--><\/p>\n<p>FlashAir\u306eSD_WLAN\u3068\u3044\u3046\u540d\u524d\u306e\u96a0\u3057\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4e2d\u306bCONFIG\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u306e\u3067\u3001CONFIG\u3092\u7de8\u96c6\u3057\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nLUA_RUN_SCRIPT=\/text.lua\r\n<\/pre>\n<p>\u3092\u8ffd\u52a0\u3057\u3001\u96fb\u6e90\u6295\u5165\u6642\u306b\u4e0a\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u81ea\u52d5\u3067\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002(<a href=\"https:\/\/flashair-developers.com\/ja\/documents\/api\/lua\/guide\/\">\u53c2\u8003<\/a>)<\/p>\n<p>\u305d\u306e\u4ed6\u3001CONFIG\u5185\u3067\u3001WiFi\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306b\u81ea\u52d5\u3067\u63a5\u7d9a\u3059\u308b\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u3092\u89e3\u9664\/\u524a\u9664\u3057\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<p>FlashAir\u3092<a href=\"http:\/\/kako.com\/blog\/?p=4815\">Airio\u3068\u3044\u3046\u30c6\u30b9\u30c8\u7528\u57fa\u677f<\/a>\u306b\u633f\u3057\u3066\u3001FlashAir\u306b\u96fb\u6e90\u3092\u4f9b\u7d66\u3057\u305f\u3002\u96fb\u6e90\u306fUSB\u30b3\u30cd\u30af\u30bf\u3092\u30e2\u30d0\u30a4\u30eb\u30d0\u30c3\u30c6\u30ea\u30fc\u306b\u3064\u306a\u3044\u3067\u4f9b\u7d66\u3057\u305f\u3002<br \/>\nAirio\u3067\u306a\u304f\u3066\u3082\u3001\u4f55\u3089\u304b\u306e\u96fb\u6e90\u4f9b\u7d66\u7528\u306e\u56de\u8def\u304c\u3042\u308c\u3070\u52d5\u304b\u305b\u308b\u3060\u308d\u3046\u3002<\/p>\n<p>\u96fb\u6e90\u3092\u5165\u308c\u305f\u3089\u3001\u3042\u3068\u306f\u81ea\u52d5\u3067FlashAir\u304c\u30ed\u30b0\u3092\u53d6\u3063\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>\u30ed\u30b0\u306f\u3001log.txt\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3055\u308c\u3066\u3044\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image2.jpg\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image2.jpg\" alt=\"\" width=\"613\" height=\"339\" class=\"alignnone size-full wp-image-42183\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image2.jpg 613w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image2-300x166.jpg 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/a><\/p>\n<p>\u6642\u9593\u306f\u3001\u30b9\u30bf\u30fc\u30c8\u6642\u30920\u66420\u52060\u79d2\u3068\u3057\u3066\u6570\u5b573\u3064\u304c\u6642\u9593\u3068\u3082\u306b\u5897\u3048\u3066\u8a18\u9332\u3055\u308c\u308b\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3060\u306830\u79d2\u3054\u3068\u306b\u3057\u3066\u3042\u308b\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u3053\u306e\u30ed\u30b0\u306b\u3042\u308bSSID\u3068RSSI\u3092\u4f7f\u3063\u3066\u3001\u5f8c\u51e6\u7406\u3067\u7def\u5ea6\u7d4c\u5ea6\u3092\u8abf\u3079\u308b\u3068\u3044\u3046\u306e\u3092\u8a66\u3057\u3066\u307f\u308b\u4e88\u5b9a\u3060\u3002<br \/>\nGoogle WiFi GeoLocation API\u306f\u3001\u6614\u3061\u3087\u3063\u3068\u8a66\u3057\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u3002<br \/>\n\u30fb<a href=\"http:\/\/www.kako.com\/neta\/2012-015\/2012-015.html\">Google WiFi GeoLocation API\u3092\u4f7f\u3063\u3066\u4f4d\u7f6e\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<\/a><\/p>\n<p>\u524d\u306b\u3084\u3063\u305fGeoLocation API\u306e\u3053\u3068\u3092\u3001\u8aad\u307f\u8fd4\u3057\u3066\u601d\u3044\u51fa\u3057\u305f\u304c\u3001<br \/>\nBSSID\u3068RSSI\u3092\u4f7f\u308f\u306a\u3044\u3068\u99c4\u76ee\u305d\u3046\u3060\u3002<br \/>\n\u306a\u306e\u3067\u3001\u4e0a\u8a18\u306e\u30ed\u30b0\u53d6\u308a\u7528\u306elua\u306e\u30b3\u30fc\u30c9\u306fBSSID\u3082\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u6539\u9020\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/kako.com\/blog\/?p=42311\">\u3064\u3065\u304f\u3002<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FlashAir\u3067\u3001\u5468\u56f2\u306eWiFi\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u691c\u7d22\u3057\u3066\u3001\u305d\u306e\u30ed\u30b0\u3092\u53d6\u308b\u30bd\u30d5\u30c8\u3092\u4f5c\u3063\u3066\u307f\u3066\u3044\u308b\u3002 \u3068\u308a\u3042\u3048\u305a\u3001\u4e00\u5b9a\u6642\u9593\u6bce\u306b\u3001\u6642\u9593\u3068\u3001SSID\u3068RSSI\u3092\u8a18\u9332\u3059\u308b\u3068\u3044\u3046\u306e\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002 \u30ed\u30b0\u3092\u53d6\u3063\u305f\u3042\u3068\u3001\u305d\u306e\u30ed\u30b0\u3092\u89e3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42182"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42182"}],"version-history":[{"count":9,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42182\/revisions"}],"predecessor-version":[{"id":42314,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42182\/revisions\/42314"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42182"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}