Author Topic: Size message queue  (Read 380 times)

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Size message queue
« 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?

Share on Facebook Share on Twitter


mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Size message queue
« Reply #1 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.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Size message queue
« Reply #2 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?

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Size message queue
« Reply #3 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

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Size message queue
« Reply #4 on: June 13, 2016, 01:43:43 am »
Thats nice :) looking forward for the new module  8)