mc-Things

mc-Products => mc-Module => Topic started by: kristofferis on June 12, 2016, 07:23:01 am

Title: Size message queue
Post by: kristofferis on June 12, 2016, 07:23:01 am
Hello.
I have noticed that if i have a module that is to far away from the mcGateway and tried to send MQTT message and of course the messages don't get delivered but if i move the mcModule closer so that it makes a connection to mcGateway then i noticed that it even sent old messages.
What is the queue size and is it possible to read the numbers in that queue on the mcModule?
Title: Re: Size message queue
Post by: mc-John on June 12, 2016, 03:54:25 pm
A Publish command will be placed in the message queue. That queue has space for 6 messages, but the Publish message has to be shared with other messages. Currently it is not possible to get the number of messages in the queue but I can see that you want to know that.
Title: Re: Size message queue
Post by: kristofferis on June 12, 2016, 04:05:11 pm
Thanks for the information.
For now it's ok when i know the size of that queue.
And i guess that the queue is first in first out kinda queue so that it will always save the last 6 messages?
Title: Re: Size message queue
Post by: mc-John on June 12, 2016, 09:32:14 pm
Yes it saves the message not send. The new module mcMod120 will have much more space because it has a ARM-M4 with 64KB RAM and 512KB Flash instead of ARM-M0 with 32KB RAM and 256KB Flash. It run about 95MIPS so it is about 6 times faster with lower power consumption. Moores law accelerated  :D
Title: Re: Size message queue
Post by: kristofferis on June 13, 2016, 01:43:43 am
Thats nice :) looking forward for the new module  8)