{"id":279596,"date":"2016-05-04T21:05:04","date_gmt":"2016-05-04T17:05:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=279596"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=279596","title":{"rendered":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 Arduino \u0432 Azure IoT Hub"},"content":{"rendered":"<p>       <a href=\"http:\/\/habrahabr.ru\/post\/282912\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d26\/91e\/42d\/d2691e42d3c3470e90bbfa4e37cd30a9.png\" \/><\/div>\n<p><\/a><\/p>\n<p>  \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u044f \u0441\u0442\u0430\u043b \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b\u043c \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c <a href=\"https:\/\/www.arduino.cc\/en\/Main\/ArduinoMKR1000\">Genuino MKR1000<\/a>. \u0420\u0435\u0441\u0443\u0440\u0441 Hackster.io \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 Microsoft \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u043d\u0430 \u043b\u0443\u0447\u0448\u0443\u044e \u0438\u0434\u0435\u044e. \u041f\u0443\u0441\u0442\u044c \u044f \u043d\u0435 \u0443\u0441\u043f\u0435\u043b \u0432\u043e\u043f\u043b\u043e\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u0438\u0434\u0435\u044e \u0432 \u0436\u0438\u0437\u043d\u044c \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430, \u043d\u043e \u044f \u043c\u043e\u0433\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u0430\u0434\u0443\u043c\u043a\u0438. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 Arduino \u0432 \u043e\u0431\u043b\u0430\u043a\u043e \u0438 \u043a\u0430\u043a \u0438\u0445 \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c WiFi \u0448\u0438\u043b\u0434 \u0438\u043b\u0438 MKR1000.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Azure<\/h4>\n<p>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 portal.azure.com, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00ab+\u00bb, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u00ab\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0432\u0435\u0449\u0435\u0439\u00bb \u2014 \u00abIoT Hub\u00bb \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u043c\u0443 \u0445\u0430\u0431\u0443. \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0445\u0430\u0431 \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0441\u043a\u0440\u043e\u043c\u043d\u043e \u2013 alexey. \u0426\u0435\u043d\u043e\u0432\u0443\u044e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0443\u044e S1 (\u043d\u0430 \u043e\u0434\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/947\/7b1\/49c\/9477b149c013427e8cc8e5fb43fe3042.PNG\"\/><\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0445\u0430\u0431\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435.<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Arduino<\/h4>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 WiFi101:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/aca\/9eb\/e92\/aca9ebe9239a434f884079b8560573d5.PNG\"\/><\/p>\n<p>  \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u044b\u0448\u0435 \u0447\u0435\u043c 0.8, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0441\u0442\u0430\u0440\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0442\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/884\/517\/d42\/884517d42fc84e2c9df22139af8e8600.PNG\"\/><\/p>\n<p>  Azure IoT Hub \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 SSL \u0434\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0443 Arduino \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043d\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 SSL, \u0442\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0447\u0438\u043f WiFi. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c Firmware \u0432\u0435\u0440\u0441\u0438\u044e WiFi101. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u043e <a href=\"https:\/\/github.com\/arduino-libraries\/WiFi101-FirmwareUpdater\/releases\/tag\/0.7.0\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a> \u0444\u0430\u0439\u043b Wifi101_FirmwareUpdater_windows.zip<\/p>\n<p>  \u0412 Arduino IDE \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0435\u0442\u0447 \u0424\u0430\u0439\u043b \u2013 \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u2013 WiFi101 \u2013 FirmwareUpdater. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c MRK1000 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043a\u0435\u0442\u0447. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043b\u0430\u0442\u0430 Arduino \u0433\u043e\u0442\u043e\u0432\u0430 \u043a \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c.<br \/>  \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c zip \u0430\u0440\u0445\u0438\u0432 Wifi101_FirmwareUpdater_windows, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c winc1500-uploader-gui.exe. \u0412\u0432\u043e\u0434\u0438\u043c \u0430\u0434\u0440\u0435\u0441 \u0443\u0437\u043b\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u0445\u0430\u0431\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ccc\/6cd\/a94\/ccc6cda947de4c98be131215a56ba566.PNG\"\/><\/p>\n<p>  \u041a\u043b\u0438\u043a\u0430\u0435\u043c \u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c COM \u043f\u043e\u0440\u0442, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00abUpload certificate\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3de\/889\/a54\/3de889a541644c958d40e46b4e9e0ad9.PNG\"\/><\/p>\n<p>  \u041e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8c3\/a1b\/77e\/8c3a1b77e72041318f09af910273de62.PNG\"\/><\/p>\n<p>  Microsoft Azure IoT Hub \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <a href=\"https:\/\/azure.microsoft.com\/ru-ru\/documentation\/articles\/storage-dotnet-shared-access-signature-part-1\/\">Shared Access Signatures<\/a>.<br \/>  \u042d\u0442\u043e \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 IoT Hub-\u0430 \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f. \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c SAS token. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 Arduino \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 Device Explorer<br \/>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u043e <a href=\"https:\/\/github.com\/Azure\/azure-iot-sdks\/releases\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a> \u0444\u0430\u0439\u043b SetupDeviceExplorer.msi<br \/>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b Azure \u0432 IoT Hub \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043b\u044e\u0447\u0438\u043a \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e35\/f43\/a18\/e35f43a181ce42ce81fe320697a2e4c6.PNG\"\/><\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 iothubowner \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u00ab\u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u2013 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/167\/5d8\/e58\/1675d8e5829f4138bd0ce8d2e47f06f5.PNG\"\/><\/p>\n<p>  \u042d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u0432\u043e\u0434\u0438\u043c \u0432 \u043e\u043a\u043d\u043e \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 Configuration \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Device Explorer \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Update<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ff7\/5a9\/2c6\/ff75a92c64124b0a812ff6ed5cec8606.PNG\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 Management. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041a\u043d\u043e\u043f\u043a\u0430 Create, \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c ID \u043d\u0430\u0448\u0435\u043c\u0443 \u0434\u0435\u0432\u0430\u0439\u0441\u0443 (\u044f \u043d\u0430\u0437\u0432\u0430\u043b \u0441\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e myDevice) \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Create.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cb0\/925\/f59\/cb0925f595704a0c8248db2a3c526b29.PNG\"\/><\/p>\n<p>  \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043d\u0438\u043c \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c SAS Token\u2026<br \/>  \u0412\u0432\u043e\u0434\u0438\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0434\u043d\u0435\u0439 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Generate. \u0418\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0442\u043e\u043a\u0435\u043d\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0430\u044f\u0441\u044f \u0441 \u00abSharedAccessSignature sr=\u00bb (\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0435\u043a\u0441\u0442 SharedAccessSignature \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 2 \u0440\u0430\u0437\u0430)<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/743\/07a\/25c\/74307a25c447409baaaf1a2f710d1355.PNG\"\/><\/p>\n<p>  \u0410\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Device Explorer \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c:<br \/>  <a href=\"https:\/\/github.com\/Azure\/azure-iot-sdks\/blob\/master\/tools\/DeviceExplorer\/doc\/how_to_use_device_explorer.md\">How to use Device Explorer for IoT Hub devices<br \/>  <\/a><\/p>\n<h4>\u041a\u043e\u0434 Arduino<\/h4>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u0434 Arduino. \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0443 \u043d\u0430\u0441 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  <code>#include &lt;SPI.h&gt;<br \/>  #include &lt;WiFi101.h&gt;<\/p>\n<p>  char hostname[] = &quot;alexey.azure-devices.net&quot;; \/\/ \u0438\u043c\u044f \u0443\u0437\u043b\u0430 Azure IoT Hub<br \/>  char authSAS[] = &quot;SharedAccessSignature sr=alexey.azure-devices.net%2fdevices%2fmyDevice&sig=D7OxGEm98bqAQDYk33d0DzPB92EuGMkjkzKBCsBBksc%3d&se=1493799405&quot;; \/\/ SAS token, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d Device Explorer<br \/>  String deviceName = &quot;myDevice&quot;; \/\/ ID \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u0435\u0432\u0430\u0439\u0441\u0430<br \/>  char ssid[] = &quot;myhomenet&quot;; \/\/ \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 wi-fi<br \/>  char pass[] = &quot;password123&quot;; \/\/ \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<br \/>  String uri = &quot;\/devices\/myDevice\/messages\/events?api-version=2016-02-03&quot;;<br \/>  int status = WL_IDLE_STATUS; \/\/ \u0441\u0442\u0430\u0442\u0443\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430<br \/>  WiFiSSLClient client;<br \/>  <\/code><br \/>  \u0421\u0442\u0440\u043e\u043a\u0430 uri \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b <br \/>  <b>\/devices\/myDevice\/messages\/devicebound?api-version=2016-02-03<\/b><br \/>  \u041a\u0440\u043e\u043c\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c <a href=\"https:\/\/msdn.microsoft.com\/ru-ru\/library\/azure\/mt590785.aspx\">\u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c\/\u043e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c \u0438\u043b\u0438 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c<\/a> \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<br \/>  \u0412 setup \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0442\u0438 Wi-Fi<\/p>\n<p>  <code>void setup() {<br \/>   Serial.begin(9600);<br \/>   Serial.println(&quot;Setup begin&quot;);<br \/>   \/\/ check for the presence of the shield:<br \/>   if (WiFi.status() == WL_NO_SHIELD) {<br \/>   Serial.println(&quot;\u0423 Arduino \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 WiFi \u0448\u0438\u043b\u0434&quot;);<br \/>   while (true); \/\/ \u043d\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0434\u0430\u043b\u044c\u0448\u0435<br \/>   }<br \/>   \/\/ \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0441\u0435\u0442\u0438 Wifi:<br \/>   while ( status != WL_CONNECTED) {<br \/>   Serial.print(&quot;\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 &quot;);<br \/>   Serial.println(ssid);<br \/>   status = WiFi.begin(ssid, pass);<br \/>   delay(10000); \/\/ \u0436\u0434\u0435\u043c 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u043e\u0441\u044c<br \/>   }<br \/>   Serial.println(&quot;Connected to Wi-Fi&quot;);<br \/>  }<br \/>  <\/code><br \/>  \u041d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c POST \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP \u043d\u0430 \u043d\u0430\u0448 \u0443\u0437\u0435\u043b. \u042f \u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0441\u044c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430, \u0445\u043e\u0442\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 json.<\/p>\n<p>  <code>void httpPost(String content)<br \/>  {<br \/>   client.stop(); \/\/ \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043e\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e<br \/>   if (client.connectSSL(hostname, 443)) {<br \/>   client.print(&quot;POST &quot;);<br \/>   client.print(uri);<br \/>   client.println(&quot; HTTP\/1.1&quot;); <br \/>   client.print(&quot;Host: &quot;); <br \/>   client.println(hostname);<br \/>   client.print(&quot;Authorization: &quot;);<br \/>   client.println(authSAS); <br \/>   client.println(&quot;Connection: close&quot;);<br \/>   client.print(&quot;Content-Type: &quot;);<br \/>   client.println(&quot;text\/plain&quot;);<br \/>   client.print(&quot;Content-Length: &quot;);<br \/>   client.println(content.length());<br \/>   client.println();<br \/>   client.println(content);<br \/>   delay(200);<br \/>   } else {<br \/>   Serial.println(&quot;HTTP POST \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u0430&quot;);<br \/>   }<br \/>  }<br \/>  <\/code><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434<\/p>\n<p>  <code>httpPost(&quot;Some message from Arduino&quot;);<br \/>  <\/code><br \/>  \u041d\u043e \u043c\u044b \u0435\u0449\u0435 \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043e\u0442\u0432\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b<\/p>\n<p>  <code> httpPost(&quot;Some message from Arduino&quot;); <br \/>   String response = &quot;&quot;;<br \/>   char c;<br \/>   while (client.available()) {<br \/>   c = client.read();<br \/>   response.concat(c);<br \/>   }<br \/>   if (!response.equals(&quot;&quot;)) <br \/>   {<br \/>   if (response.startsWith(&quot;HTTP\/1.1 204&quot;)) {<br \/>   Serial.println(&quot;\u0421\u0442\u0440\u043e\u043a\u0430 \u0431\u044b\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 Azure&quot;); <br \/>   } else {<br \/>   Serial.println(&quot;\u041e\u0448\u0438\u0431\u043a\u0430&quot;);<br \/>   Serial.println(response);<br \/>   }<br \/>   }<br \/>  <\/code><br \/>  \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441 <a href=\"https:\/\/github.com\/programmersommer\/Arduino_Azure_IoT_Hub\">github<\/a><\/p>\n<h4>\u041a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 IoT Hub<\/h4>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<br \/>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c NuGet Package Manager, \u0438\u0449\u0435\u043c <b>WindowsAzure.ServiceBus<\/b> \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c.<br \/>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0443 namespace:<\/p>\n<pre><code class=\"cs\">using Microsoft.ServiceBus.Messaging; using System.Threading; <\/code><\/pre>\n<p>  \u0418 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"cs\">static string connectionString = &quot;HostName=alexey.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=xrzUfBj8gaq2i310MhRCcSEs08t3lk7zbCNI4Tltqp4=&quot;; static string iotHubD2cEndpoint = &quot;messages\/events&quot;; static EventHubClient eventHubClient; <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c connectionString \u044f \u0432\u0432\u0435\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0441 \u043f\u043e\u0440\u0442\u0430\u043b\u0430 Azure \u2013 \u044d\u0442\u043e \u00ab\u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u2013 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447\u00bb. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u043e\u0434:<\/p>\n<pre><code class=\"cs\">private static async Task ReceiveMessagesFromDeviceAsync(string partition, CancellationToken ct) {     var eventHubReceiver = eventHubClient.GetDefaultConsumerGroup().CreateReceiver(partition, DateTime.UtcNow);     while (true)     {         if (ct.IsCancellationRequested) break;         EventData eventData = await eventHubReceiver.ReceiveAsync();         if (eventData == null) continue;          string data = Encoding.UTF8.GetString(eventData.GetBytes());         Console.WriteLine(&quot;Message received. Partition: {0} Data: '{1}'&quot;, partition, data);     } } <\/code><\/pre>\n<p>  \u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0432 Main \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cs\">Console.WriteLine(&quot;\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. Ctrl-C \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430.\\n&quot;); eventHubClient = EventHubClient.CreateFromConnectionString(connectionString, iotHubD2cEndpoint);  var d2cPartitions = eventHubClient.GetRuntimeInformation().PartitionIds;  CancellationTokenSource cts = new CancellationTokenSource();  System.Console.CancelKeyPress += (s, e) =&gt; {   e.Cancel = true;   cts.Cancel();   Console.WriteLine(&quot;\u0412\u044b\u0445\u043e\u0434\u0438\u043c...&quot;); };  var tasks = new List&lt;Task&gt;(); foreach (string partition in d2cPartitions) {    tasks.Add(ReceiveMessagesFromDeviceAsync(partition, cts.Token)); }   Task.WaitAll(tasks.ToArray()); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u044d\u0442\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u043e\u0439 Arduino.<\/p>\n<h4>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/h4>\n<p>  <a href=\"https:\/\/azure.microsoft.com\/ru-ru\/documentation\/articles\/iot-hub-csharp-csharp-getstarted\/\">\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u044f \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0446\u0435\u043d\u0442\u0440\u043e\u043c Azure IoT \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c .NET<\/a><br \/>  <a href=\"http:\/\/mohanp.com\/mkr1000-azure-iot-hub-how-to\/\">MKR1000 Azure IoT Hub Interface Using HTTP<\/a><br \/>  <a href=\"https:\/\/create.arduino.cc\/projecthub\/doncoleman\/mkr1000-temp-and-humidity-sensor-8f22ed\">MKR1000 Temp and Humidity Sensor<\/a>               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/282912\/\"> https:\/\/habrahabr.ru\/post\/282912\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <a href=\"http:\/\/habrahabr.ru\/post\/282912\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d26\/91e\/42d\/d2691e42d3c3470e90bbfa4e37cd30a9.png\" \/><\/div>\n<p><\/a><\/p>\n<p>  \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u044f \u0441\u0442\u0430\u043b \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b\u043c \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c <a href=\"https:\/\/www.arduino.cc\/en\/Main\/ArduinoMKR1000\">Genuino MKR1000<\/a>. \u0420\u0435\u0441\u0443\u0440\u0441 Hackster.io \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 Microsoft \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u043d\u0430 \u043b\u0443\u0447\u0448\u0443\u044e \u0438\u0434\u0435\u044e. \u041f\u0443\u0441\u0442\u044c \u044f \u043d\u0435 \u0443\u0441\u043f\u0435\u043b \u0432\u043e\u043f\u043b\u043e\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u0438\u0434\u0435\u044e \u0432 \u0436\u0438\u0437\u043d\u044c \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430, \u043d\u043e \u044f \u043c\u043e\u0433\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u0430\u0434\u0443\u043c\u043a\u0438. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 Arduino \u0432 \u043e\u0431\u043b\u0430\u043a\u043e \u0438 \u043a\u0430\u043a \u0438\u0445 \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c WiFi \u0448\u0438\u043b\u0434 \u0438\u043b\u0438 MKR1000.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-279596","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279596"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279596\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}