przemobe / micropy-ENC28J60

ENC28J60 Ethernet chip driver for MicroPython (RP2)
GNU General Public License v3.0
22 stars 7 forks source link

CoAP over ENC28J60 #5

Closed mardecker closed 10 months ago

mardecker commented 11 months ago

Is it possible to use a common CoAP library like microcoapy with your ENC28J60 Driver?

przemobe commented 11 months ago

Hello, I have no experience with CoAP. However I have made quick research of https://github.com/insighio/microCoAPy and it seems to be possible to use it with the driver. It requires custom socket implementation. The library probably was not tested on RP2040 so it may turn out that it will requires to solve porting issues.

Nevertheless, I am optimistic.

przemobe commented 11 months ago

After doing some tests, I will add an example of using microCoAPy soon.

przemobe commented 10 months ago

Hello @mardecker,

Please check sample code: examples/MicrocoapyClient.py CoAP library requires single modification only. Please refer to: https://github.com/insighio/microCoAPy/pull/12/files

Best regards.

mardecker commented 10 months ago

Thank you very much for adding the example code. Thanks to it I made it work for my usecases. I am going to add AES encryption, which I should be able to import from the micropython library to make it more secure.

Have a nice day!

mardecker commented 10 months ago

It works fine