Philipp Blum <philipp-b...@jakiku.de> wrote:
I need to get the IP address within gcoap. If available global, if not ULA,
if not ULA then link-local.

In all generality, the address may depend upon which interface you are
connected to, and what the address of your correspondant is. Particularly
the Link-Local.
While many devices have only one interface, this is not universally true.
It may be better to have an API that takes this into account.

True that. I don't mind getting multiple addresses. I also thought about getting the destination address of the incoming packet or something like this. When I think about it, it probably is even better to get all addresses. Thanks for the input. Yes, an API for this would be very good. Do you know in what modules/files I have to look into it, to get a better understanding where to get this information from?
_______________________________________________
users mailing list
users@riot-os.org
https://lists.riot-os.org/mailman/listinfo/users

Reply via email to