Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] topic alias

Thank you for the information.

I think you can realize your original idea because your situation is
not so large.
In addition, you have two more options:

1) Use physical topics only

The clients publishes to the central broker by using physical topics
correspond with PIN.
The central Node-RED subscribes "ingress/#" and get all ingress messages.
All logics include mapping physical topics to logical meanings are on
the central Node-RED.
The central Node-RED publishes the control messages to
"egress/(specific physical subtopic)" in need.

2) Use logical topics only

The clients' Node-RED change physical PINs to logical topics by using
"Change Node" which is one of Node-RED components.
The clients publishes to the central broker by using logical topics.
The central Node-RED subscribes "ingress/#" and get all ingress messages.
All logics exclude mapping physical topics to logical meanings are on
the central Node-RED.
The central Node-RED publishes the control messages to
"egress/(specific logical subtopic)" in need.


2018-01-04 0:31 GMT+09:00 Roberto Previdi <hariseldon78@xxxxxxxxx>:
>
>
> On Tue, Jan 2, 2018 at 3:15 AM Tatsuzo Osawa <tatsuzo.osawa@xxxxxxxxx>
> wrote:
>>
>> HI Roberto,
>>
>> Your question seems independent on mosquitto, so better at
>> https://groups.google.com/forum/#!forum/mqtt than at this place. And
>> the answer might be "depends on the scale".
>
> I though to ask here because maybe mosquitto did have some "hidden" feature
> of aliasing or "cheap forwarding".
>
>> Although, I'd like to consider a little and have a few questions.
>>
>> - The broker is only one at the central raspberry and node-red as
>> mqtt-client is at every raspberry. Right?
>
> Yes
>
>> - Why non-central raspberries must know the other raspberries' gpios?
>>   (I think only the central must know and it produces the message of
>> order to the others in need.)
>
> They don't, and i'm trying to put the least possible logic in each "client"
> raspberry. They only have the connections "PIN -> mqtt topic" for the
> sensors or  "mqtt topic -> PIN" for the relays.
>
>>
>> - How many raspberries must be managed?
>
> Probably a maximum of 5/10 in the years to come. At the moment is only 3
> with the central one.
>
>>
>> - How often are the messages produced?
>
> Some sensors are read every second, other every 5 or 10 seconds.
>
> --
> Roberto Previdi
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top