résolu :erreur de compilation

bonjour

j’ai un script dont vous avez le code ci dessous. j’ai une erreur de compilation.

In file included from tcpclient.ino:20:
C:\Users\bunpo\Documents\Arduino\libraries\WiFlyHQmaster/WiFlyHQ.h:78: error: conflicting declaration ‘typedef const char prog_char’
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/…/…/avr/include/avr/pgmspace.h:212: error: ‘prog_char’ has a previous declaration as ‘typedef char prog_char’

j’ai essayé cette solution du forum mais cela ne change rien
,http://forum.arduino.cc/index.php?topic=196594.0

cela me le fait depuis que j’ai fait un script pour tester en incluant la librairie wiflyhq. j’ai fait dans arduino croquis importer bibliothèque wiflyhq ce qui me met #include <WiFlyHQ.h> dans le code, depuis, j’ai l’erreur avec les scripts fournis en exemple. mauvaise manip au lieu d’écrire à la main #include <WiFlyHQ.h>?? Si oui, j’ai désinstallé la librairie wiflyhq pris su github, fait une réinstallation de arduino 1.05 r2 et pas moyen de faire disparaitre cette erreur
Je suis sous seven pro sp1. avec un rn 171 relié à un arduino uno par uart. et 3 capteurs. les capteurs envoient bien le données sur le terminal série. Vote avis pour résoudre cela sera le bienvenue.

merci

changement effectué dans le répertoire de la libairie en plus de la copie d’un aute script par cette http://forum.arduino.cc/index.php?topic=196594.0

To resolve the problem, edit the “WiFlyHQ.h” file and comment out the line 78 (typedef const char PROGMEM prog_char;)!
/ / typedef const char PROGMEM prog_char;

/* Barometer demo V1.0
* Based largely on code by  Jim Lindblom
* Get pressure, altitude, and temperature from the BMP085.
* Serial.print it out at 9600 baud to serial monitor.
*
* By:http://www.seeedstudio.com
*/
#include "Barometer.h"
#include <Wire.h>

/*
* WiFlyHQ Example httpclient.ino
 *
 * This sketch implements a simple Web client that connects to a 
 * web server, sends a GET, and then sends the result to the 
 * Serial monitor.
 *
 * This sketch is released to the public domain
 
 */
 
#include <WiFlyHQ.h>
//const char site[] = "192.168.0.10";
//#include <SoftwareSerial.h>
//SoftwareSerial wifiSerial(8,9);
WiFly wifly;


/* Grove - Light Sensor demo v1.0
* 
* Signal wire to A0.
* By: http://www.seeedstudio.com
*/
#include <math.h>

float temperature;
float pressure;
float atm;
float altitude;
Barometer myBarometer;


#define LIGHT_SENSOR A0//Grove - Light Sensor is connected to A0 of Arduino

float Rsensor; //Resistance of sensor in K


// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain

#include "DHT.h"

#define DHTPIN A1     // what pin we're connected to

// Uncomment whatever type you're using!
#define DHTTYPE DHT11   // DHT 11 
//#define DHTTYPE DHT22   // DHT 22  (AM2302)
//#define DHTTYPE DHT21   // DHT 21 (AM2301)

// Connect pin 1 (on the left) of the sensor to +5V
// Connect pin 2 of the sensor to whatever your DHTPIN is
// Connect pin 4 (on the right) of the sensor to GROUND
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor

DHT dht(DHTPIN, DHTTYPE);

void setup(){
  Serial.begin(9600);
  myBarometer.init();
  dht.begin();
  
  wifly.begin(&Serial);
  
  // if (wifly.open(site, 80)) {
  // Serial.print("Connected to ");
  // Serial.println(site);
//}
}

void loop()
{
   temperature = myBarometer.bmp085GetTemperature(myBarometer.bmp085ReadUT()); //Get the temperature, bmp085ReadUT MUST be called first
   pressure = myBarometer.bmp085GetPressure(myBarometer.bmp085ReadUP());//Get the temperature
   altitude = myBarometer.calcAltitude(pressure); //Uncompensated caculation - in Meters 
   atm = pressure / 101325; 
  
  Serial.print("Temperature: ");
  Serial.print(temperature, 2); //display 2 decimal places
  Serial.println("deg C");

  Serial.print("Pressure: ");
  Serial.print(pressure, 0); //whole number only.
  Serial.println(" Pa");

  Serial.print("Related Atmosphere: ");
  Serial.println(atm, 4); //display 4 decimal places

  Serial.print("Altitude: ");
  Serial.print(altitude, 2); //display 2 decimal places
  Serial.println(" m");

  Serial.println();

  delay(1000); //wait a second and get values again.

int sensorValue = analogRead(LIGHT_SENSOR); 
    Rsensor = (float)(1023-sensorValue)*10/sensorValue;
     Serial.println();
    Serial.println("the sensor light is ");
    Serial.println(Rsensor,DEC);//show the ligth intensity
     Serial.println();

// Reading temperature or humidity takes about 250 milliseconds!
    // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
    float h = dht.readHumidity();
    float t = dht.readTemperature();

    // check if returns are valid, if they are NaN (not a number) then something went wrong!
    if (isnan(t) || isnan(h)) 
    {
        Serial.println("Failed to read from DHT");
    } 
    else 
    {
        Serial.print("Humidity: "); 
        Serial.print(h);
        Serial.println(" %\t");
        Serial.println();
        }

   
}