![](/media/cache/profiles/c19a46c712c75b70a137f619a0916436.jpg.50x50_q85.png)
Skeleton program for Federico's 4YP project.
Dependencies: WebSocketClient WiflyInterface mbed messages
Fork of IoT_Ex by
Diff: headers/globals.h
- Revision:
- 10:e8b66718a103
- Parent:
- 5:0c7d131e6089
--- a/headers/globals.h Tue Nov 29 12:22:14 2016 +0000 +++ b/headers/globals.h Tue Nov 29 15:02:01 2016 +0000 @@ -48,6 +48,10 @@ #define WS_PORT 4444 #define SERVER_IP "192.168.1.99" +// Pin assignments +#define VOLTAGE_SENSOR_PIN PA_0 +#define CURRENT_SENSOR_PIN PA_1 + // Hardware: extern Serial pc; extern InterruptIn UIBut1; @@ -59,8 +63,15 @@ extern int SendCounter; extern int IoT_ID; extern float TempSensor; +extern float VoltageMeasurement; +extern float CurrentMeasurement; +extern float PwmPeriod_us; +extern float Duty_us; extern char* wifissid; extern char* wifipassword; +extern DigitalOut db; +extern AnalogIn VoltageSensor; +extern AnalogIn CurrentSensor; // Communication: extern WiflyInterface eth;