i've been working with en arduino 101 and with the curieBLE on it so... finnally finish my software to upload it to the boar and by the time i verify it apears the exit status in the title, here´s my code (it is not complete because its really long and the exit status i already know that its related to the declaration so it includes the declaration of both variables that produces the error)
BLEService IDfromModule("7e12cf15-51b9-4d0f-b232-c91ed3713829");
BLEService Motors("85cc1e70-a5d3-4a22-875f-03a8394add24");
BLEService DeclaringPins("bd151392-0867-4f94-a0f9-7361ce55cff5");
BLEService PinData("1a450558-2d15-43b3-80ed-4d9fc1341966");
BLEIntCharacteristic ID("5db924ba-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
BLEIntCharacteristic Speed("5db9276c-44e6-11e7-a919-92ebcb67fe33", BLEWrite);//pwm for the front\back motor
BLEIntCharacteristic Angle("5db92c12-44e6-11e7-a919-92ebcb67fe33", BLEWrite);//pwm for the rigth\left motor
BLEIntCharacteristic AngleDirection("5db92d48-44e6-11e7-a919-92ebcb67fe33", BLEWrite);//digital signal for the front\back motor
BLEIntCharacteristic SpeedDirection("5db92e38-44e6-11e7-a919-92ebcb67fe33", BLEWrite);//digital signal for the rigth\left motor
BLECharacteristic OutputPins("5db92f14-44e6-11e7-a919-92ebcb67fe33", BLEWrite,10);
BLECharacteristic InputPins("5db92ff0-44e6-11e7-a919-92ebcb67fe33", BLEWrite,10);
BLEIntCharacteristic Pin0("5db930c2-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin1("5db9354a-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin2("5db93644-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin4("5db93716-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin7("5db937d4-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin8("5db9389c-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin10("5db9395a-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);
BLEIntCharacteristic Pin9("5db93d6a-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);//PWM
BLEIntCharacteristic Pin3("5db93f36-44e6-11e7-a919-92ebcb67fe33", BLEWrite|BLERead);//PWM
BLEIntCharacteristic AnalogPin0("5db9401c-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
BLEIntCharacteristic AnalogPin1("5db940ee-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
BLEIntCharacteristic AnalogPin2("5db941b6-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
BLEIntCharacteristic AnalogPin3("5db94274-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
BLEIntCharacteristic AnalogPin4("5db944d6-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
BLEIntCharacteristic AnalogPin5("5db945bc-44e6-11e7-a919-92ebcb67fe33", BLERead|BLENotify);
const int SpeedControl = 6;//it has the pwm function wich you can use to control the velocity of the car
const int Angles = 5;//this will also work for direccion in order to give you diferent angles
const int DirectionSpeed = 12;//connected this digital output can work to change the direction of the motors that give the speed
const int DirectionAngle = 11;//and this one works the same way for the direccion
const int IDsender = 13;//this pin will turn on to get the id to after load it to the id characteristic
String Outputs;
String Inputs;
void setup() {
pinMode(IDsender, OUTPUT);
pinMode(SpeedControl, OUTPUT);
pinMode(Angles, OUTPUT);
pinMode(DirectionSpeed, OUTPUT);
pinMode(DirectionAngle, OUTPUT);
BLE.begin();
BLE.setLocalName("PROYECT Racoon");
BLE.setAdvertisedService(IDfromModule);
BLE.setAdvertisedService(Motors);
BLE.setAdvertisedService(DeclaringPins);
BLE.setAdvertisedService(PinData);
IDfromModule.addCharacteristic(ID);
Motors.addCharacteristic(Speed);
Motors.addCharacteristic(SpeedDirection);
Motors.addCharacteristic(Angle);
Motors.addCharacteristic(AngleDirection);
DeclaringPins.addCharacteristic(OutputPins);
DeclaringPins.addCharacteristic(InputPins);
PinData.addCharacteristic(Pin0);
PinData.addCharacteristic(Pin1);
PinData.addCharacteristic(Pin2);
PinData.addCharacteristic(Pin3);
PinData.addCharacteristic(Pin4);
PinData.addCharacteristic(Pin7);
PinData.addCharacteristic(Pin8);
PinData.addCharacteristic(Pin9);
PinData.addCharacteristic(Pin10);
PinData.addCharacteristic(AnalogPin0);
PinData.addCharacteristic(AnalogPin1);
PinData.addCharacteristic(AnalogPin2);
PinData.addCharacteristic(AnalogPin3);
PinData.addCharacteristic(AnalogPin4);
PinData.addCharacteristic(AnalogPin5);
BLE.addService(IDfromModule);
BLE.addService(Motors);
BLE.addService(DeclaringPins);
BLE.addService(PinData);
ID.setValue(0);
Speed.setValue(0);
SpeedDirection.setValue(0);
Angle.setValue(0);
AngleDirection.setValue(0);
OutputPins.setValue(0);//the data has to be like "1XXXXXXXXX"
InputPins.setValue(0);//The same mask for this data
Pin0.setValue(0);
Pin1.setValue(0);
Pin2.setValue(0);
Pin4.setValue(0);
Pin7.setValue(0);
Pin8.setValue(0);
Pin10.setValue(0);
Pin3.setValue(0);
Pin9.setValue(0);
AnalogPin0.setValue(0);
AnalogPin1.setValue(0);
AnalogPin2.setValue(0);
AnalogPin3.setValue(0);
AnalogPin4.setValue(0);
AnalogPin5.setValue(0);
BLE.advertise();
}
void loop() {
// put your main code here, to run repeatedly:
BLEDevice central=BLE.central();
if (central){
while(central.connected()){
if (identifyModule()){
delay(2000);
declare();
}
UpdateReadings(Inputs);
UpdateWritings(Outputs);
Movement();
}
set();
}
}
void declare(){
Outputs=OutputPins.value();
Inputs=InputPins.value();//here's where im having the exit status and im pretty sure that in the line above will give me the same thing
CheckPin(Outputs,true);
CheckPin(Inputs,false);
}
SO, where im messing it up?, and another thing a little bit out of the topic could someone can tell me how its codified the BLEintCharacteristic? because i dont know how to read it from a phone