{"id":42311,"date":"2019-02-15T08:59:33","date_gmt":"2019-02-14T23:59:33","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=42311"},"modified":"2019-02-25T07:23:12","modified_gmt":"2019-02-24T22:23:12","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-2","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=42311","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 \u2013 \u305d\u306e2"},"content":{"rendered":"<p><a href=\"http:\/\/kako.com\/blog\/?p=42182\">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<\/a>\u3001\u3068\u3044\u3046\u8a71\u306e\u7d9a\u304d\u3002<\/p>\n<p><a href=\"http:\/\/kako.com\/blog\/?p=42182\">\u524d\u56de\u306e\u3082\u306e<\/a>\u306fBSSID\u3082\u8a18\u9332\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3092\u5931\u5ff5\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u3061\u3083\u3093\u3068BSSID\u3082\u8a18\u9332\u3059\u308b\u3088\u3046\u306b\u4f5c\u308a\u76f4\u3057\u3066\u307f\u305f\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;BSSID&quot; then\r\n\t\t\t\t\tfile:write(&quot; BSSID,&quot;..val..&quot;\\r\\n&quot;)\r\n\t\t\t\telseif 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>&#8212;<br \/>\n\u8ffd\u8a18<\/p>\n<p>\u4e0a\u8a18\u306eFlashAir\u3067\u7121\u7ddaLAN\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u60c5\u5831\u306e\u30ed\u30b0\u3092\u53d6\u308b\u30bd\u30d5\u30c8\u3092\u6700\u8fd1\u4f5c\u3063\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u305d\u306e\u3082\u306e\u305a\u3070\u308a\u306e\u5148\u4f8b\u304c\u3042\u3063\u305f\u3088\u3046\u3060\u3002\u6c17\u3065\u3044\u3066\u306a\u304b\u3063\u305f\u3002<br \/>\n\u30fb<a href=\"https:\/\/seesaawiki.jp\/flashair-dev\/d\/Lua%3A%20Geolocation%BB%D9%B1%E7%A5%B9%A5%AF%A5%EA%A5%D7%A5%C8\">Lua: Geolocation\u652f\u63f4\u30b9\u30af\u30ea\u30d7\u30c8 &#8211; FlashAir\u958b\u767a\u8005\u5411\u3051\u975e\u516c\u5f0fwiki<\/a><\/p>\n<p>&#8212;<br \/>\n\u540d\u53e4\u5c4b\u306e\u5927\u9808\u96fb\u6c17\u8857\u3092\u6b69\u3044\u3066\u30ed\u30b0\u3092\u53d6\u3063\u3066\u307f\u305f\u3002\u8857\u4e2d\u306a\u306e\u3067\u3001\u3055\u3059\u304c\u306bWiFi\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u304c\u591a\u3044\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image1.png\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image1.png\" alt=\"\" width=\"321\" height=\"674\" class=\"alignnone size-full wp-image-42312\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image1.png 321w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/02\/Image1-143x300.png 143w\" sizes=\"(max-width: 321px) 100vw, 321px\" \/><\/a><\/p>\n<p>\u3042\u3068\u306f\u3001\u3053\u306e\u30ed\u30b0\u306b\u3042\u308bBSSID\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\u3064\u3082\u308a\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>\u3057\u304b\u3057\u3001\u4eca\u306f\u3053\u306eAPI\u306fGoogle Maps Geolocation API\u306b\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u3066\u3001\u4f7f\u3044\u65b9\u3082\u3060\u3044\u3076\u9055\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3002<br \/>\n\u7def\u5ea6\u7d4c\u5ea6\u3092\u6c42\u3081\u308b\u30b3\u30fc\u30c9\u306f\u4f5c\u308a\u76f4\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/kako.com\/blog\/?p=42347\">\u3064\u3065\u304f<\/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\u305f\u3001\u3068\u3044\u3046\u8a71\u306e\u7d9a\u304d\u3002 \u524d\u56de\u306e\u3082\u306e\u306fBSSID\u3082\u8a18\u9332\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3092\u5931\u5ff5\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u3061\u3083\u3093\u3068BSSID\u3082\u8a18\u9332\u3059\u308b\u3088 [&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\/42311"}],"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=42311"}],"version-history":[{"count":6,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42311\/revisions"}],"predecessor-version":[{"id":42401,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42311\/revisions\/42401"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42311"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}