<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Implementing Direct Methods in Azure Sphere</title><link>/products/devtools/avnetboardscommunity/azure-sphere-starter-kits/b/blog/posts/implementing-direct-methods-in-azure-sphere</link><description>Introduction One of the really nice things about developing your secure IoT product with Azure Sphere is that Microsoft has implemented all the hooks and OS Services for your Azure Sphere application to leverage Azure IoT Hub features for Cloud ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Implementing Direct Methods in Azure Sphere</title><link>https://community.element14.com/products/devtools/avnetboardscommunity/azure-sphere-starter-kits/b/blog/posts/implementing-direct-methods-in-azure-sphere</link><pubDate>Mon, 23 Sep 2019 14:28:03 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3afb74c5-e0b1-4c22-94e7-c69f560c94f8</guid><dc:creator>Fred27</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Agreed - another very nice article. I&amp;#39;m already using Direct Methods in my project so had to work all this out myself.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;&lt;span&gt;If you have used Direct Methods to implement features or functionalities in your own IoT deployment, please add a comment with a high level overview of what you did.&amp;nbsp; This will help other developers generate ideas.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;My project is based around Azure AD B2C for user authentication. This then calls through an Azure Function and Azure IoT Hub (using a direct method) to get extra security information from the Azure Sphere device.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7765&amp;AppID=235&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Implementing Direct Methods in Azure Sphere</title><link>https://community.element14.com/products/devtools/avnetboardscommunity/azure-sphere-starter-kits/b/blog/posts/implementing-direct-methods-in-azure-sphere</link><pubDate>Sun, 22 Sep 2019 21:20:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3afb74c5-e0b1-4c22-94e7-c69f560c94f8</guid><dc:creator>juli15</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi! This article is incredible, it&amp;#39;s giving me a lot of hints to achieve a little bit more of level with C and IoT! I&amp;#39;ve implemented your code typed by hand (I say it because I&amp;#39;m afraid this could be the error..). But when I try to compile the code, it&amp;#39;s giving me an error which says&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;quot; Error implicit declaration of function &amp;#39;AzureIoT_SetDirectMethodCallback&amp;#39;; did you mean &amp;#39;DirectMethodCall&amp;#39;? [-Werror=implicit-function-declaration]&lt;/p&gt;&lt;p&gt;&amp;nbsp; AzureIoT_SetDirectMethodCallback(&amp;amp;DirectMethodCall);&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As I&amp;#39;ve been reading through other websites, it has something to do with being executing functions before declarating them, but in this case, &lt;em&gt;&amp;#39;AzureIoT_SetDirectMethodCallback&amp;#39; &lt;/em&gt;is where we are declaring the function, right? I don&amp;#39;t clearly understand what VS is trying to tell... I&amp;#39;m declaring it as you said, in &lt;em&gt;InitPeripheralsAndHandlers&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for all your good work!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7765&amp;AppID=235&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>