pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

WiPy: SOCK_RAW not defined in the WiPy firmware #357

Closed robert-hh closed 2 years ago

robert-hh commented 5 years ago

For an unknown reason, the symbol SOCK_RAW is not defined in the WiPy branch. Using the integer 3 (which is it's value) in the respective situation works. So may I ask you not to exclude WIPy in the definition of SOCK_RAW. The place to go is here: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/mods/modusocket.c#L1017

oligauc commented 5 years ago

At the moment SOCK_RAW should only be using with Lora and Sigfox.

robert-hh commented 5 years ago

The question is not, whether Pycom software is using it, but whether user software can use it. It is just the symbol definition, that is missing. Supplying 3 as the value of that symbol works.

oligauc commented 5 years ago

Thanks @robert-hh. We will test and put the constant for the wifi also.