This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

StoneStreet One SPP Demo - AddFunctionToScheduler

Other Parts Discussed in Thread: MSP430F5438A, MSP430F5219

Hi there,

I am using an MSP430F5438A and a PAN1323 module to commmunicate to my Android phone. So far I was able to setup the connection to my phone and send messages with the terminal. Now I wanted to send a message every 10ms automatically. Therefore I added a Function to the scheduler with the BTPS_AddFunctionToScheduler-Method, before running the scheduler:

		if((BTPS_AddFunctionToScheduler(IdleFunction, NULL, 0)) && (BTPS_AddFunctionToScheduler(SensorFunction, NULL, 1000)))
		{

		  /* Loop forever and execute the scheduler.                    		*/
		  while(1)
			  BTPS_ExecuteScheduler();
		}

Before I've setup a connection with my phone I get the error "No Connection Established" as expected, but I get it only once. As far as I thought I should get the message every 10ms. Also, after setting up the connection I don't receive anything at all anymore.

Can anyone give me a hint on how to use this method? Isn't this method intended to do exactly what I want? Is it better to setup up an additional timer?

thank you for any help.