Smart Badge

I have created this prototype to explain how the task can be solved.

Let us say, that the MQTT feed comprises of below models.

MQTT feed models

Also, assume that the feed supports below interface.

MQTT feed interface

I have designed a Statistics module to Count the Smart Badges by Area.

This module queries the feed and computes the count.

Statistics module

The Unit Test project tests this module.