<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MQX - Web Server with button HTML Page in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566534#M16537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sol.&lt;/P&gt;&lt;P&gt;Thanks for send.&lt;/P&gt;&lt;P&gt;I got a question, Why do you use the: HTTPSRV_CGI_REQ_STRUCT?&lt;/P&gt;&lt;P&gt;The reference of nxp is HTTPD_SESSION_STRUCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to send an value of my CGI, but the parameters received is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static _mqx_int cgi_toggle_led4(HTTPD_SESSION_STRUCT *session) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; char buffer[100];&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 len = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 index = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; boolean bParams = FALSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 size = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 valid = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; char *buffer_url;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; valid = session-&amp;gt;valid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; size = session-&amp;gt;request.content_len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 18:18:16 GMT</pubDate>
    <dc:creator>samueldionisiod</dc:creator>
    <dc:date>2016-08-08T18:18:16Z</dc:date>
    <item>
      <title>MQX - Web Server with button HTML Page</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566529#M16532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an example that has a button in the HTML page by sending a command to the microconntrolador and getting an answer.&lt;/P&gt;&lt;P&gt;I use the reference example "httpsrv_twrk60n512"&lt;/P&gt;&lt;P&gt;I use the MQX4.0 with MK60DN512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566529#M16532</guid>
      <dc:creator>samueldionisiod</dc:creator>
      <dc:date>2016-08-03T13:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - Web Server with button HTML Page</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566530#M16533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create an example that you can use as reference. In the example I implemented 7 buttons in order to move servomotores.&lt;/P&gt;&lt;P&gt;Please let me know if this helps!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt; Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:49:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566530#M16533</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-08-03T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - Web Server with button HTML Page</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566531#M16534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning sun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help yes ... can you please send me the complete example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 10:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566531#M16534</guid>
      <dc:creator>samueldionisiod</dc:creator>
      <dc:date>2016-08-04T10:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - Web Server with button HTML Page</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566532#M16535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;My e-mail is &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:samueldionisio@gmail.com"&gt;samueldionisio@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 13:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566532#M16535</guid>
      <dc:creator>samueldionisiod</dc:creator>
      <dc:date>2016-08-04T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - Web Server with button HTML Page</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566533#M16536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Samuel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the complete example. &lt;/P&gt;&lt;P&gt;In Ethernet\Sources\web_pages you will find the web_page I named myPage.html, after modify the web_page you need to execute the request.js file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Ethernet\Sources you will find the cgi.c file and main.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566533#M16536</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-08-05T20:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX - Web Server with button HTML Page</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566534#M16537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sol.&lt;/P&gt;&lt;P&gt;Thanks for send.&lt;/P&gt;&lt;P&gt;I got a question, Why do you use the: HTTPSRV_CGI_REQ_STRUCT?&lt;/P&gt;&lt;P&gt;The reference of nxp is HTTPD_SESSION_STRUCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to send an value of my CGI, but the parameters received is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static _mqx_int cgi_toggle_led4(HTTPD_SESSION_STRUCT *session) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; char buffer[100];&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 len = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 index = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; boolean bParams = FALSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 size = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint_32 valid = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; char *buffer_url;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; valid = session-&amp;gt;valid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; size = session-&amp;gt;request.content_len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 18:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Web-Server-with-button-HTML-Page/m-p/566534#M16537</guid>
      <dc:creator>samueldionisiod</dc:creator>
      <dc:date>2016-08-08T18:18:16Z</dc:date>
    </item>
  </channel>
</rss>

