dannalejandro
Posts: 15
Joined: Fri Feb 08, 2013 8:57 pm
Location: Ecuador
Contact: Website Facebook Twitter

response must match regular expression pattern

Tue Jul 19, 2016 3:02 am

Dear Gpsgate:

I have made a configuration command for my Queclink gl100 devices, and I need to get a response, so I configured the Device response must match regular expression pattern: +ACK:GTSFR
but I´m receiving the next error: "Permanent Failure - parsing "+ACK:GTSFR" - Quantifier {x,y} following nothing."

The response in the terminal from the device is:
[7/18/2016 5:44:49 PM] (200.85.83.18:46736/SensorLogic/tcp) Client: +ACK:GTSFR,[Deviceimei],20160718154447,20160718224522,001d,0102130204[0x00]

So I know the device is receiving the command correctly.

What should be the correct expression pattern I must introduce to get the right answer to close the command?
Thanks for your support

User avatar
johan
GpsGate
Posts: 15403
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: response must match regular expression pattern

Wed Jul 20, 2016 3:54 pm

Try \+ACK:GTSFR

+ has a special meaning for RegExp. Using \ in front will escape +.

Regards,
Johan

GpsGate Support

dannalejandro
Posts: 15
Joined: Fri Feb 08, 2013 8:57 pm
Location: Ecuador
Contact: Website Facebook Twitter

RE: response must match regular expression pattern

Wed Jul 20, 2016 10:33 pm

Thanks Johan:

It seems to work with your indications.

Best regards

Return to “GpsGate for Developers”