* AM2321的取温度间隔得大于2s,否则,i2c会不工作了 * SimpleTimer有个bug,会导致两次快速的读温度,现在读温度函数里加了保护 * Blynk有个bug,会导致无法把数据传到服务器 * 现在可以正常工作了

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BlynkConfig.h Source File

BlynkConfig.h

Go to the documentation of this file.
00001 /**
00002  * @file       BlynkConfig.h
00003  * @author     Volodymyr Shymanskyy
00004  * @license    This project is released under the MIT License (MIT)
00005  * @copyright  Copyright (c) 2015 Volodymyr Shymanskyy
00006  * @date       Jan 2015
00007  * @brief      Configuration of different aspects of library
00008  *
00009  */
00010 
00011 #ifndef BlynkConfig_h
00012 #define BlynkConfig_h
00013 
00014 #include "Blynk/BlynkDetectDevice.h "
00015 
00016 /***************************************************
00017  * Change these settings to match your need
00018  ***************************************************/
00019 
00020 #define BLYNK_DEFAULT_DOMAIN     "blynk-cloud.com"
00021 #define BLYNK_DEFAULT_PORT       8442
00022 #define BLYNK_DEFAULT_PORT_SSL   8441
00023 
00024 /***************************************************
00025  * Professional settings
00026  ***************************************************/
00027 // Library version.
00028 #define BLYNK_VERSION        "0.3.7"
00029 
00030 // Heartbeat period in seconds.
00031 #ifndef BLYNK_HEARTBEAT
00032 #define BLYNK_HEARTBEAT      10
00033 #endif
00034 
00035 // Network timeout in milliseconds.
00036 #ifndef BLYNK_TIMEOUT_MS
00037 #define BLYNK_TIMEOUT_MS     5000UL
00038 #endif
00039 
00040 // Limit the amount of outgoing commands.
00041 #ifndef BLYNK_MSG_LIMIT
00042 #define BLYNK_MSG_LIMIT      200
00043 #endif
00044 
00045 // Limit the incoming command length.
00046 #ifndef BLYNK_MAX_READBYTES
00047 #define BLYNK_MAX_READBYTES  256
00048 #endif
00049 
00050 // Limit the outgoing command length.
00051 #ifndef BLYNK_MAX_SENDBYTES
00052 #define BLYNK_MAX_SENDBYTES  128
00053 #endif
00054 
00055 // Uncomment to disable built-in analog and digital operations.
00056 #define BLYNK_NO_BUILTIN
00057 
00058 // Uncomment to disable providing info about device to the server.
00059 //#define BLYNK_NO_INFO
00060 
00061 // Uncomment to enable debug prints.
00062 //#define BLYNK_DEBUG
00063 
00064 // Uncomment to force-enable 128 virtual pins
00065 //#define BLYNK_USE_128_VPINS
00066 
00067 // Uncomment to enable experimental functions.
00068 //#define BLYNK_EXPERIMENTAL
00069 
00070 // Uncomment to disable all float/double usage
00071 //#define BLYNK_NO_FLOAT
00072 
00073 // Uncomment to switch to direct-connect mode
00074 //#define BLYNK_USE_DIRECT_CONNECT
00075 
00076 
00077 // Uncomment to append command body to header (uses more RAM)
00078 //#define BLYNK_SEND_ATOMIC
00079 
00080 // Split whole command into chunks (in bytes)
00081 //#define BLYNK_SEND_CHUNK 64
00082 
00083 // Wait after sending each chunk (in milliseconds)
00084 //#define BLYNK_SEND_THROTTLE 10
00085 
00086 #endif
00087