Other Parts Discussed in Thread: SYSCONFIG, CC3300
IDE: CCS v12.6.0.00008
SDK: Simplelink MSP432E4 SDK v4.20.00.12
Example: mqttclient
Compiler: TI v20.2.7.LTS
Kernel: TI-RTOS
Debugger: TI XDS110 USB Debug Probe
Hi,
I have a MSP401E401Y device with a working ethernet connection and want to add a wifi connection as well. To start, I used the mqttclient example to connect to a mqtt broker running on the local network over the ethernet connection. Next, I want to add a wifi connection and connect to the broker using the same settings but over wifi. The is a uart connection between the MSP and wifi module. Using AT commands over the uart interface I am able to connect to the wifi network.
From here, I'm not sure how to proceed. Ideally, I want to use the wifi module in PPP mode and use the same settings that were used over ethernet to connect to the mqtt broker. In the sysconfig I have tried adding a new NDK interface and set it to use a custom device, and the custom NIMU init function name. I tried copying what was being done in the EMACMSP432E4_NIMU init function but have run into issues not knowing how to properly set it up. I find that alot of the structs being used require EMACMSP432 variables that I am unable to properly locate within the project. I also assume that it should be fairly simple to just have uart reading and writing and passing that data within the NDK, but don't know if this is correct.
Am I on the right track and am I missing anything? Or is this the wrong direction and not something the NDK was meant for?
The end application is a device that sends sensor data to a mqtt broker. It will have both an ethernet and wifi connection, but will only use one at a time. If an ethernet connection is available it will use that, if not it should switch to using wifi if it's properly configured and the signal is available.