I am looking for a simple way to take from the terminal emulator string of numbers and save it to the flash memory.
so i was trying to make a custom AT command but the i understood that i must use AT sequence before i enter the string,
so then i was trying this standard c method :
while ((c = getchar()) != “\n”)
bigbuf[i++] = c;
but then the WCPU will take all the garbage into this buffer while waiting for a string to be entered or maybe just enter zeroes inside this buffer.
The getchar() is implemented in stdio.h so i used it as is within the while loop to retrieve chars from the open port.
Regarding the FCM, I assume that I need to use the adl_fcmSubscribe api
, is there any specific sample in open at that i can have reference for this purpose?
i was tryning to subscribe fcm and retreve the data in timer handler that will waits 60 seconds and then get back to AT mode.
The question is if can retreive the numbers that i wish to enter the application( and save it into a buffer) in data mode charecter by charecter with the following format:
ok , i subscribed to FCM and switched to data mode inside data handler,
but never got into the data handler when placing beakpoint when running the debugger.