How to get Mesh Local EID (OpenThread)?
Hello Everyone,
I've been messing with the OpenThread API for the last few days and I have been scratching my head on trying to get the mesh local EID IPV6 address using the API. So when running CLI CMD example application, after connecting the nodes, you can clearly see all the IP values when entering "ipaddr" and that's essentially what I want in my program, specifically the mesh-local EID. However, I tried otThreadGetMeshLocalEid but the memory location returned is just empty. I also tried to look at the memory locations for the returns of otIp6GetUnicastAddresses and otIp6GetMulticastAddresses. I know my node is on my thread network because I am validating with other nodes running the CLI CMD example. My naive mental model is that if I can do it in the CLI CMD example, I should be able to do it with my own application using the given API for IPCC.
Anyone have any suggestions?
I am aware that the multiboard example for the STM32WB Nucelo board uses static IPs that are allocated by the application. I am not sure why its done that way, assuming for ease of implementation, but I wanted to rather use dynamic IPs since my application will have many nodes and trying to create a static IP for each will be a headache.