我是靠谱客的博主 内向小丸子,最近开发中收集的这篇文章主要介绍at_testCmd,at_queryCmd,at_setupCmd,at_exeCmd,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

at_wifiCmd.h

/*
 * File	: at_wifiCmd.h
 * This file is part of Espressif's AT+ command set program.
 * Copyright (C) 2013 - 2016, Espressif Systems
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of version 3 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef __AT_WIFICMD_H
#define __AT_WIFICMD_H

void at_testCmdCwmode(uint8_t id);
void at_queryCmdCwmode(uint8_t id);
void at_setupCmdCwmode(uint8_t id, char *pPara);

//void at_testCmdCwjap(uint8_t id);
void at_queryCmdCwjap(uint8_t id);
void at_setupCmdCwjap(uint8_t id, char *pPara);

void at_setupCmdCwlap(uint8_t id, char *pPara);
void at_exeCmdCwlap(uint8_t id);

void at_testCmdCwqap(uint8_t id);
void at_exeCmdCwqap(uint8_t id);

void at_queryCmdCwsap(uint8_t id);
void at_setupCmdCwsap(uint8_t id, char *pPara);

void at_exeCmdCwlif(uint8_t id);

void at_queryCmdCwdhcp(uint8_t id);
void at_setupCmdCwdhcp(uint8_t id, char *pPara);

void at_queryCmdCipstamac(uint8_t id);
void at_setupCmdCipstamac(uint8_t id, char *pPara);

void at_queryCmdCipapmac(uint8_t id);
void at_setupCmdCipapmac(uint8_t id, char *pPara);

void at_queryCmdCipsta(uint8_t id);
void at_setupCmdCipsta(uint8_t id, char *pPara);

void at_queryCmdCipap(uint8_t id);
void at_setupCmdCipap(uint8_t id, char *pPara);

#endif

 

at.h

/*
 * File	: at.h
 * This file is part of Espressif's AT+ command set program.
 * Copyright (C) 2013 - 2016, Espressif Systems
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of version 3 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef __AT_H
#define __AT_H

#include "c_types.h"

//#define at_busyTaskPrio        1
//#define at_busyTaskQueueLen    4

//#define ali

#define at_recvTaskPrio        0
#define at_recvTaskQueueLen    64

#define at_procTaskPrio        1
#define at_procTaskQueueLen    1

#define at_backOk        uart0_sendStr("rnOKrn")
#define at_backError     uart0_sendStr("rnERRORrn")
#define at_backTeError   "+CTE ERROR: %drn"

typedef enum{
  at_statIdle,
  at_statRecving,
  at_statProcess,
  at_statIpSending,
  at_statIpSended,
  at_statIpTraning
}at_stateType;

typedef enum{
  m_init,
  m_wact,
  m_gotip,
  m_linked,
  m_unlink,
  m_wdact
}at_mdStateType;

typedef struct
{
	char *at_cmdName;
	int8_t at_cmdLen;
  void (*at_testCmd)(uint8_t id);
  void (*at_queryCmd)(uint8_t id);
  void (*at_setupCmd)(uint8_t id, char *pPara);
  void (*at_exeCmd)(uint8_t id);
}at_funcationType;

typedef struct
{
  uint32_t baud;
  uint32_t saved;
}at_uartType;

void at_init(void);
void at_cmdProcess(uint8_t *pAtRcvData);

#endif

 

最后

以上就是内向小丸子为你收集整理的at_testCmd,at_queryCmd,at_setupCmd,at_exeCmd的全部内容,希望文章能够帮你解决at_testCmd,at_queryCmd,at_setupCmd,at_exeCmd所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部