9/22/2023 0 Comments Linux ppp poff![]() ![]() I then call it like res = DoFork("/usr/bin/sudo", "pon", "fona", NULL, "GSM Connection Made\n", "GSM not started. LogEntry(LOG_NOTICE, ErrorMsg, res) //"GSM not started. Int res = execl(method, method, param1, param2, param3, NULL) ![]() LogEntry(LOG_CRIT, "Unable to make fork\n") This is my function that I use to do my forking bool DoFork(const char *method, const char *param1, const char *param2 = NULL, const char *param3 = NULL, const char *SuccessMsg = "Success", const char *ErrorMsg = "Error") Is there a way for me to establish a pppd connection from code by including header files and calling a method instead of forking the process? All of this works as expected.īecause the SIM808 have GPS as well which I use, I want to control the connect and disconnect from my application, which work as well by doing a fork(), but I found that in some instances the application falls over for no reason. Currently I establish my connection with sudo pon and disconnect sudo poff. I have a c++ program that runs on the RPi 3 with a GPRS hat (SIM808) with is connected via UART.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |