4 years, 8 months ago.

I can't understand what is the problem

/media/uploads/HCJ/2014-07-15_22-29-01.jpg /media/uploads/HCJ/2014-07-15_22-29-22.jpg

I can't understand what is the problem

in the library, they write down this "bool init (const char *simpin=NULL, DevStatus *status=NULL, PinName pn MDM_IF(=MDMPWRON,=D4)) register (Attach) the MT to the GPRS service

I want to solve this problem please help me

Question relating to:

C027_Support library test C027, GNSS, GPRS, GPS, GSM, modem
Comment on this question

3 Answers

4 years, 8 months ago.

I think you need to enclose the 1234 in quotes, i.e #define SIMPIN "1234". You will then need to convert SIMPIN to an integer in the assignment of USIM on the line that follows.

4 years, 8 months ago.

password and simpin have to be strings.

4 years, 8 months ago.

Ken and Michael are correct with the definition of SIMPIN and PASSWORD. If you want to define them as strings then you need put quotes there.

Additionally, the initialization of the buf variable is strange (although it is not the indicated error message). If you want to initialize it to all zeros then you might want to either use

char buf[512] = {0};


memset(buf, 0, 512);

To post an answer, please log in.