It is currently 20 Apr 2018 15:26

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 16 Aug 2017 10:44 
Offline

Joined: 03 Jul 2015 22:34
Posts: 22
I have noticed that the following char array initialization fails:

char temp [] = "AT$CW=868130000,1";

It seems that the problem is related to the comma, but the following initialization fails as well:

char temp [] = "AT$CW=868130000\,1";

However, if the char are set separately everything seems to work fine:

char temp [18];

spp_at_command_enable_continuous_wave[0] = 'A';
spp_at_command_enable_continuous_wave[1] = 'T';

...

spp_at_command_enable_continuous_wave[17] = '\0';

I cannot find the reason for the problem and I have not seen such issues before. Do you know what might be wrong?


Top
 Profile  
 
PostPosted: 17 Aug 2017 16:00 
Offline
User avatar

Joined: 21 Mar 2017 16:57
Posts: 527
Hello

That is a strange issue indeed, I will investigate it some more and post the result... The comma shouldn't be a problem, I have seen it used in many situations...
I will report when I find out some more about this.

Best regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: