Open2300 - Bug Report 2015x 06x 04x 000919

BUG: http_request_url failure

Moving Open2300 to a Raspberry Pi 2 model B.

~ $ cat /etc/issue Raspbian GNU/Linux 7 \n \l ~ $ uname -a Linux RasPi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

Fetch2300 works correctly, establishing weather station connectivity.

Changed most "unsigned char" types to "char" to get a compile without warnings. Normally when running wu2300, the site will respond with "success", but I did not receive this or any error message.

Set DEBUG on, recompiled and captured the url string. Sent it by curl and received a "success" response. This leads me to conclude the failure is in http_request_url. This same code was working fine in the old computer, so something is different in the Raspberry Pi environment.

My C coding days were long ago but this is my work-around (end of wu2300.c) : if (DEBUG) { printf("%s\n",urlline); } else { /* http_request_url(urlline); */ char * str = "/usr/bin/curl \""; char urlOut[250]; strcpy(urlOut, str); strcat(urlOut, urlline); strcat(urlOut, "\""); system(urlOut); }

Test case


Open2300 version: 1.10
Shared libraries:  
Server OS: Raspbian 7
-- JamieBrown - 04 Jun 2015

Follow up

Fix record

Topic revision: r1 - 04 Jun 2015, JamieBrown
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.