Pc.printf("Error connecting to AP.\r\n") If(nnect(AP_SSID, AP_PASSWORD, NSAPI_SECURITY_WPA2)) Pc.printf("IDW01M1 NetworkSocketAPI TCP Client Ubidots\r\n") #STM32 NUCLEO UPDATE#* Update status variable state depending USER_BUTTON state */ #define UBIDOTS_DEVICE "YOUR_UBIDOTS_LABEL_DEVICE"ĪnalogIn adc_vbat(ADC_VBAT) // VBAT / 3 internal to ADC channelĪnalogIn adc_temp(ADC_TEMP) // Internal Temp Sensor to ADC Channelįloat temp = adc_temp.read() * 100 // Converted in Cįloat batt = adc_vbat.read() * 30000 // Converted in mV #define UBIDOTS_TOKEN "YOUR_UBIDOTS_TOKEN" Which interfere with STLink/SWD programmer. Important note: Some IDW01M1 wifi shield had resistor R21 mounted Use NucleoL476RG with X-Nucleo-IDW01M1v2 wifi shield The status of onboard User Button (blue) on NucleoL476RG STM32L476 Internal Temperature Sensor in C STM32L476 VBAT/3 internal channel in mV This example sends 3 variables to Ubidots. You should have received a copy of the GNU General Public License GNU General Public License for more details. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program is distributed in the hope that it will be useful,īut WITHOUT ANY WARRANTY without even the implied warranty of The Free Software Foundation, either version 3 of the License, or It under the terms of the GNU General Public License as published by This program is free software: you can redistribute it and/or modify Note that this code is for example purposes only and should be developed to your exact specifications. Once you've properly replaced the code with the one below, update your Wi-Fi credentials, assign your Ubidots TOKEN, and assign the " NucleoL476" as the device label where is indicated in the code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |