Hello everyone! In these hours I am working on an important project in which I should use a PIC24EP512GU810 as a web server to view the data of some environmental sensors. Needless to say, the amount of data to be published prevents me from using the limited "SPI_Ethernet" library with the related and working example. Furthermore, as we all know, this dignified library has a defect, that is, it does not allow the publication of html pages greater than 1.5kb. I therefore proceeded to install in my compiler the "Network Ethernet Library", whose example (working), however, allows the simple drafting of a web page, with some active links, but with no possibility of publishing variable data, possibly coming from an ADC or other sensor. As advised by the guys from Mikroe, I tried to convert the example of the "SPI_Ethernet" library, using those provided for the "Network Ethernet Library", realizing in the transcription phase, that the service dedicated to the responses coming from the client "Spi_Ethernet_UserTCP", it is completely different from the one foreseen by the other library "Net_Ethernet_28j60_UserTCP", that is, the first one uses a "function" with a whole series of variables to load, while the other one uses a "procedure" with the only variable of the "socket" array . I tried to write the attached code, but unfortunately it doesn't work. I was wondering if any of you had experienced the same problem and if it had solved somehow. I tried to search the forum, in libstock, but unfortunately I have not found anything useful ... On the net and on the forum I found a lot of frustration in this regard with people who said they had solved their problems by switching to Arduino or Raspberry, but I did not want to abandon the Mikroe suite, I am fond of it ... Many thanks to those who can help me ...
The attached example I tested on EasyPic Fusion V7, with EthClick on Mikrobus1 and MCU CARD with PIC24EP512GU810 ...
[Solved] Network Ethernet Library and HTML: problem with variables data
-
- Posts: 137
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
[Solved] Network Ethernet Library and HTML: problem with variables data
- Attachments
-
- HTTP_Demo_28j60.zip
- (414.67 KiB) Downloaded 88 times
Last edited by Darklakebridge78 on 01 May 2020 19:37, edited 1 time in total.
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it
-
- Posts: 137
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
Re: Network Ethernet Library and HTML: problem with variables data
I solved using the Network WiFi library, which allows to create custom sized web pages and has a working example, where it is shown how to enter variable data.
The library can be downloaded here:
https://libstock.mikroe.com/projects/vi ... fi-library
The working example, here:
https://libstock.mikroe.com/projects/vi ... mo-example
The library can be downloaded here:
https://libstock.mikroe.com/projects/vi ... fi-library
The working example, here:
https://libstock.mikroe.com/projects/vi ... mo-example
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it