ENC28J60 webserver like ESP8266

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

ENC28J60 webserver like ESP8266

Post by stefan.erni »

Hi Ben

Recently I used a web server for a wlan chip ESP8266 from FC7. That works well. Is there something similar for the (wired IC) ENC28J60 for FC8?

regards

Stefan


http://www.matrixtsl.com/mmforums/viewt ... 63&t=19306

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ENC28J60 webserver like ESP8266

Post by Benj »

Hello Stefan,

The example here should show you how to host some HTML using the ENC28J60 module.

https://www.matrixtsl.com/wiki/index.ph ... etworking)

It's not quite as nice as the ESP webserver code but it should work well.

Let us know how you get on.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: ENC28J60 webserver like ESP8266

Post by stefan.erni »

Hi Ben

This is working nice with my hardware. Thank you.

Just a small question.....

I get always "Page x Request" as my answer

Do you have a little help?

Stefan

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: ENC28J60 webserver like ESP8266

Post by stefan.erni »

Hi Ben

If I compare the string, there is never a "/" or "/page2.htm",

Compare$ (CompareString,"/",0) = 0
Compare$ (CompareString,"/page2.htm",0) = 0

If I display the string it's always just "GET"

The link "click here for page2" is going to page2 in the explorer but there is no "page2.htm" in the string.

WEB.PNG
(3.59 KiB) Downloaded 1532 times
Attachments
Page2.PNG
(6.95 KiB) Downloaded 1532 times

Post Reply