Help with enc28j60 lib

Discuss with MikroElektronika software developers about current library development.
Post Reply
Author
Message
HelterSkelter
Posts: 3
Joined: 24 Dec 2017 17:13

Help with enc28j60 lib

#1 Post by HelterSkelter » 24 Dec 2017 17:29

Hello,

I have a question regarding enc28j60 library. I want to make a project in witch you send a e-mail to some user. My questions are:

Is SPI_Ethernet_UserTCP command only for http requests or is it general command in witch you can specify any protocol?
How do i specify IP adress of email server wich i send SMTP request to?
What port do i use and where do i specifiy it? (i think it doesnt matter as long as it is not normal port for example 7777)

Thanks in advance,
Marin

User avatar
marko.stankovic
mikroElektronika team
Posts: 108
Joined: 18 Dec 2017 15:44

Re: Help with enc28j60 lib

#2 Post by marko.stankovic » 28 Dec 2017 10:49

Hi,

Function SPI_Ethernet_UserTCP is written for http requests, but the function has open source code and you can transform it for your protocol. The function defines that it only works for local port 80.
In the help of this function it says that the function source code is provided with appropriate example projects and the code should be adjusted by the user to achieve desired reply.

Best Regards,
Marko Stankovic.

HelterSkelter
Posts: 3
Joined: 24 Dec 2017 17:13

Re: Help with enc28j60 lib

#3 Post by HelterSkelter » 28 Dec 2017 19:01

Hello,

Thank you for your answer, could you just help me with two other questions?

Do i only have to modify "SPI_Ethernet_UserTCP " function or do i need to modify anything else?

Where can i find the code of this function?

Thank you for your help,

Marin

User avatar
marko.stankovic
mikroElektronika team
Posts: 108
Joined: 18 Dec 2017 15:44

Re: Help with enc28j60 lib

#4 Post by marko.stankovic » 05 Jan 2018 16:28

Hi,

You can download the example at next link https://libstock.mikroe.com/projects/vi ... ck-example
There you can find the code of this function

Best Regard,
Marko Stankovic.

Post Reply

Return to “Library Development Discussion”