is it allowed to use a = sign in your strings ?

Alles m.b.t. de Homeseer MQTT Broker Plugin van Willem Eradus (Dutch Forum)

Moderator: Willem4ever

Post Reply
vincenttor
Member
Member
Posts: 344
Joined: Thu Jan 09, 2014 10:45 pm
Location: Netherlands

is it allowed to use a = sign in your strings ?

Post by vincenttor »

Well the thing i bumped into is this.
Blueiris supports mqtt now, so i thought let's give it a try.

Works actually quite good , back and forth with receiving and sending strings.
But since BlueIris decided to use strings like these :

Code: Select all

camera=cam1&preset=17
It is not working , i guess this is maybe a limitation from homeseer ?

See the video i have made down here.


Is there something that can be done ?
(yes i know there is a blueiris plugin but i'd like to use mqtt only since its light weight and working with most home automation software.)
vincenttor
Member
Member
Posts: 344
Joined: Thu Jan 09, 2014 10:45 pm
Location: Netherlands

Re: is it allowed to use a = sign in your strings ?

Post by vincenttor »

nobody with the same "problem" ?
since i can't seem to change the strings from blueiris im a bit stuck with this.

Also with the other mqtt plugin a same sort of problem excists when using the = sign, this plugin thinks that the payload comes after the =.
vincenttor
Member
Member
Posts: 344
Joined: Thu Jan 09, 2014 10:45 pm
Location: Netherlands

Re: is it allowed to use a = sign in your strings ?

Post by vincenttor »

nobody that has a solution for this ?
Akatar
Senior Member
Senior Member
Posts: 1134
Joined: Thu Nov 22, 2007 12:25 am
Location: the netherlands

Re: is it allowed to use a = sign in your strings ?

Post by Akatar »

probably not
geert-jan
Member
Member
Posts: 126
Joined: Sat Nov 27, 2010 7:23 pm

Re: is it allowed to use a = sign in your strings ?

Post by geert-jan »

Hi,

The issue is that the URL parameters (as used in the Homeseer webpages) are encoded as 'parameter=value'. If the 'value', i.e. the event parameter, contains the '=' sign, there is no way to differentiate between a 'parameter=value' and a value containing the '=' sign. They are all handled as 'parameter=value'.

What may work, but I cannot test this at the moment: use %3D instead of the '=' sign.

Regards,
Geert-Jan
vincenttor
Member
Member
Posts: 344
Joined: Thu Jan 09, 2014 10:45 pm
Location: Netherlands

Re: is it allowed to use a = sign in your strings ?

Post by vincenttor »

Thanks Greet,
will see if i get this working.
have to get everything up and running again.
Post Reply

Return to “Homeseer MQTT Plugin Forum”