{"id":648,"date":"2016-11-23T17:05:56","date_gmt":"2016-11-23T17:05:56","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=159"},"modified":"2016-11-23T17:05:56","modified_gmt":"2016-11-23T17:05:56","slug":"get-i2c-port-names","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/i2c\/get-i2c-port-names","title":{"rendered":"Get I2C Port Names"},"content":{"rendered":"<p>\n\t&nbsp;\n<\/p>\n<pre>\n<code>\n\t\/\/Get I2C Port Name\n\tstring AqsFilter = I2cDevice.GetDeviceSelector();\n\tvar dis = await DeviceInformation.FindAllAsync(AqsFilter);\n\tif (dis.Count &gt; 0)\n\t\tSystem.Diagnostics.Debug.WriteLine(dis[0].Id);\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \/\/Get I2C Port Name string AqsFilter = I2cDevice.GetDeviceSelector(); var dis = await DeviceInformation.FindAllAsync(AqsFilter); if (dis.Count &gt; 0) System.Diagnostics.Debug.WriteLine(dis[0].Id); &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-648","post","type-post","status-publish","format-standard","hentry","category-i2c"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=648"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/648\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}