i want to implement a firmware on a STM32L432KC for interfacing a NB-IoT chip by Quectel. The interface is text-based, e.g. send a query command like "AT+QISTATE?" and getting a respon like "0,TCPIP,"127.0.0.1","8001","1",1,0,"quectel.com",DIRECT,0".
With an eval board connected to PC i solved this interactions using regular expressions, but i think this is a little bit overdone on this µC...
I was thinking about importing the sscanf() method from C via FFI... What do you think? Is there are a more efficient way to inpterpret this kind of responses?
Thank you for you advises and kind regards,