<commit_before>/**
 * @file       BlynkProtocolDefs.h
 * @author     <NAME>
 * @license    This project is released under the MIT License (MIT)
 * @copyright  Copyright (c) 2015 <NAME>
 * @date       Jan 2015
 * @brief      Blynk protocol definitions
 *
 */

#ifndef BlynkProtocolDefs_h
#define BlynkProtocolDefs_h

enum BlynkCmd
{
    BLYNK_CMD_RESPONSE			= 0,
    BLYNK_CMD_REGISTER			= 1,
    BLYNK_CMD_LOGIN				= 2,
    BLYNK_CMD_SAVE_PROF			= 3,
    BLYNK_CMD_LOAD_PROF			= 4,
    BLYNK_CMD_GET_TOKEN			= 5,
    BLYNK_CMD_PING				= 6,
    BLYNK_CMD_TWEET				= 12,
    BLYNK_CMD_EMAIL				= 13,
    BLYNK_CMD_NOTIFY			= 14,
    BLYNK_CMD_BRIDGE			= 15,
    BLYNK_CMD_HARDWARE			= 20
};

enum BlynkStatus
{
    BLYNK_SUCCESS				= 200,
    BLYNK_QUOTA_LIMIT_EXCEPTION	= 1,
    BLYNK_ILLEGAL_COMMAND		= 2,
    BLYNK_NOT_REGISTERED		= 3,
    BLYNK_ALREADY_REGISTERED	= 4,
    BLYNK_NOT_AUTHENTICATED		= 5,
    BLYNK_NOT_ALLOWED			= 6,
    BLYNK_NO_CONNECTION			= 7,
    BLYNK_NO_ACTIVE_DASHBOARD	= 8,
    BLYNK_INVALID_TOKEN			= 9,
    BLYNK_DEVICE_WENT_OFFLINE	= 10,
    BLYNK_ALREADY_LOGGED_IN		= 11,

    BLYNK_NOTIFICATION_INVALID_BODY_EXCEPTION = 13,
    BLYNK_NOTIFICATION_NOT_AUTHORIZED_EXCEPTION = 14,
    BLYNK_NOTIFICATION_EXCEPTION = 15,

    BLYNK_TIMEOUT				= 16
};

struct BlynkHeader
{
    uint8_t  type;
    uint16_t msg_id;
    uint16_t length;
}
BLYNK_ATTR_PACKED;
<commit_msg>Update definitions<commit_after>/**
 * @file       BlynkProtocolDefs.h
 * @author     <NAME>
 * @license    This project is released under the MIT License (MIT)
 * @copyright  Copyright (c) 2015 <NAME>
 * @date       Jan 2015
 * @brief      Blynk protocol definitions
 *
 */

#ifndef BlynkProtocolDefs_h
#define BlynkProtocolDefs_h

enum BlynkCmd
{
    BLYNK_CMD_RESPONSE       = 0,
    BLYNK_CMD_REGISTER       = 1,
    BLYNK_CMD_LOGIN          = 2,
    BLYNK_CMD_SAVE_PROF      = 3,
    BLYNK_CMD_LOAD_PROF      = 4,
    BLYNK_CMD_GET_TOKEN      = 5,
    BLYNK_CMD_PING           = 6,
    BLYNK_CMD_ACTIVATE       = 7,
    BLYNK_CMD_DEACTIVATE     = 8,
    BLYNK_CMD_REFRESH        = 9,
    BLYNK_CMD_TWEET          = 12,
    BLYNK_CMD_EMAIL          = 13,
    BLYNK_CMD_NOTIFY         = 14,
    BLYNK_CMD_BRIDGE         = 15,
    BLYNK_CMD_HARDWARE       = 20
};

enum BlynkStatus
{
    BLYNK_SUCCESS                = 200,
    BLYNK_QUOTA_LIMIT_EXCEPTION  = 1,
    BLYNK_ILLEGAL_COMMAND        = 2,
    BLYNK_NOT_REGISTERED         = 3,
    BLYNK_ALREADY_REGISTERED     = 4,
    BLYNK_NOT_AUTHENTICATED      = 5,
    BLYNK_NOT_ALLOWED            = 6,
    BLYNK_NO_CONNECTION          = 7,
    BLYNK_NO_ACTIVE_DASHBOARD    = 8,
    BLYNK_INVALID_TOKEN          = 9,
    BLYNK_DEVICE_WENT_OFFLINE    = 10,
    BLYNK_ALREADY_LOGGED_IN      = 11,

    BLYNK_NTF_INVALID_BODY       = 13,
    BLYNK_NTF_NOT_AUTHORIZED     = 14,
    BLYNK_NTF_ECXEPTION          = 15,

    BLYNK_TIMEOUT                = 16
};

struct BlynkHeader
{
    uint8_t  type;
    uint16_t msg_id;
    uint16_t length;
}
BLYNK_ATTR_PACKED;

{'fraction_non_alphanumeric': 0.06724367509986684, 'fraction_numerical': 0.03695073235685752, 'mean_word_length': 2.3314855875831486, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2610793', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1285, 'n_words': 207}