Closed jraats closed 1 month ago
Ah, yes, it was my intention that it should be possible to have a NULL
network configuration for the device tree case, then I forgot about that when adding the PPP stuff. Will fix.
Fix in commit 477c03ddb01accff89e6a4eef5281f3dc3aeed4e; will close this now, please feel free to re-open if there is more to discuss or a further issue related to this issue.
Hi RobMeades, After updating to the latest version (master) I moved to the Zephyr device tree implementation which is a great improvement! But after removing all the config structs in my code and using the device tree configuration I came across a fatal error.
My old implementation was:
whereby my new implementation is (param is NULL, because the settings are in the device tree):
This change works for
U_NETWORK_TYPE_GNSS
, but not forU_NETWORK_TYPE_CELL
.After digging in the code I came across this piece of code https://github.com/u-blox/ubxlib/blob/c25c7b30f921c344d7506ebc4bd0eef392a4adc0/common/network/src/u_network.c#L164:
which in case of
U_NETWORK_TYPE_CELL
tries to copy thepUartPpp
data. However because I've passedNULL
to this function there is nopUartPpp
data.In my opinion
pCfg
can be optional, because it is now possible to use the device tree. After applying this fix:to
the code is working again.
What do you think? Am I correct that pCfg can be optional and is this fix something we want upstream?
Thanks in advance.