Page 1 of 1

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

Posted: Sun Mar 04, 2018 2:49 pm
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.)

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

Posted: Sat Mar 10, 2018 9:59 am
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 =.

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

Posted: Sat Apr 07, 2018 8:59 am
by vincenttor
nobody that has a solution for this ?

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

Posted: Sat Apr 07, 2018 10:48 pm
by Akatar
probably not

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

Posted: Tue Apr 10, 2018 8:00 am
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

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

Posted: Sat Apr 14, 2018 9:18 am
by vincenttor
Thanks Greet,
will see if i get this working.
have to get everything up and running again.