Giter VIP home page Giter VIP logo

wislte_arduino's People

Contributors

fomi-rak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wislte_arduino's Issues

Serial1' was not declared in this scope :- Error while compiling example code

System :- Windows 10 64 bit , 8GB RAM
Arduino IDE :- 1.8.5
Shield :- WisLTE Arduino shield Quectel BG96 module
Board :- Arduino Uno

Error while compiling/Uploding example code ,


TCP_Client:6: error: '**Serial1' was not declared in this scope**

 #define DSerial Serial1

                 ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino:20:34: note: in expansion of macro 'DSerial'

 WisLTEBG96TCPIP WisLTE(ATSerial, DSerial);

                                  ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino: In function 'void setup()':

TCP_Client:6: error: 'Serial1' was not declared in this scope

 #define DSerial Serial1

                 ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino:23:5: note: in expansion of macro 'DSerial'

     DSerial.begin(115200);

     ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino: In function 'void loop()':

TCP_Client:6: error: 'Serial1' was not declared in this scope

 #define DSerial Serial1

                 ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino:66:17: note: in expansion of macro 'DSerial'

                 DSerial.println("\r\nClose Socket Success!");

                 ^

TCP_Client:6: error: 'Serial1' was not declared in this scope

 #define DSerial Serial1

                 ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino:72:17: note: in expansion of macro 'DSerial'

                 DSerial.println("\r\nSocket Recv Data Success!");

                 ^

TCP_Client:6: error: 'Serial1' was not declared in this scope

 #define DSerial Serial1

                 ^

C:\Users\Faris\Documents\Arduino\libraries\WisLTE_Arduino-master\examples\TCP_Client\TCP_Client.ino:81:17: note: in expansion of macro 'DSerial'

                 DSerial.println("\r\nPlease reconfigure APN!");

                 ^

exit status 1
'Serial1' was not declared in this scope


APN ERROR: Activate APN file!

Hi there,

After a few days trying to make this code run on my Arduino UNO with WisCell shield, I was finally able to understand the software serial issue and send a TCP message to "mbed.org".
You can see my findings here.

But now I want to communicate with Hologram's cloudsocket, so I change the APN variables (tcp_ip, tcp_port) to:

const char APN[] = "hologram";
const char tcp_ip[] = "cloudsocket.hologram.io";
const int tcp_port = 9999;
const char send_data[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\r\n\r\n";
unsigned int comm_pdp_index = 1;  // The range is 1 ~ 16
unsigned int comm_socket_index = 0;  // The range is 0 ~ 11
Socket_Type_t socket = TCP_CLIENT;

and when I open my serial monitor I get the following messages:

This is the WisLTE Debug Serial!
ATE0
ATI

Quectel
BG96
Revision: BG96MAR02A05M1G

AT+CPIN?
AT+QICSGP=1,1,"hologram","","",3
AT+QICSGP=1,1,"hologram","","",3
AT+QICSGP=1,1,"hologram","","",3
AT+CGPADDR=1
AT+CGPADDR=1
AT+CGPADDR=1
AT+QIACT=1
AT+QICSGP=1,1,"hologram","","",3
AT+QICSGP=1,1,"hologram","","",3
AT+QICSGP=1,1,"hologram","","",3
AT+CGPADDR=1
AT+QIACT=1

APN ERROR: Activate APN file!

Can you help me understand this error?

help for compiling RAK8212

Dear All
the library is very well done.
I would like to develop firmaware application for scretch on Itracker RAK8212 using arduino ide and this library can help.
I istalled the itraker board on arduino following the instruction on rakwireless support page and i was not able to download example firwmare application(the page not found).
Anyway I was able to run first examples wtith BLE.
I would like to add the part of code that let interact BG96 and the other perifherial on board with nrf chip. Can you help me?

Connect servo to receiver and then arduino

Hi , I am trying to make a obstacle avoidance RC wing. But a have a issue.
I want to connect my 2 servos on my receiver and the receiver to a arduino uno.
So like that i can control the wing with a transmitter and program the servos so if a ultrasonic sensors see a obstacle the 2 servos can react and make the wing avoid the obstacle.
Can you please help me with how i connect the servos to the receiver to the arduino uno and how i program this.
I am french so sorry for my bad english and thank you in advance

When trying to verify the samples provided

`/WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:``` In function 'void setup()':
MQTTS_Client:115: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
while (!WisLTE.InitAPN(comm_pdp_index, APN, "", "", apn_error)){
^
In file included from /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33:0,
from /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32,
from /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:33,
from /WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:2:
/Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:85:10: error: initializing argument 2 of 'bool WisLTEBG96TCPIP::InitAPN(unsigned int, char*, char*, char*, char*)' [-fpermissive]
bool InitAPN(unsigned int pdp_index, char *apn, char *usr, char *pwd, char *err_code);

      ^

MQTTS_Client:157: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
while (WisLTE.OpenMQTTNetwork(comm_mqtt_index, mqtt_server, mqtt_port) != 0){
^
In file included from /WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:2:0:
/Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:89:27: error: initializing argument 2 of 'Mqtt_Network_Result_t WisLTEBG96MQTT::OpenMQTTNetwork(unsigned int, char*, unsigned int)' [-fpermissive]
Mqtt_Network_Result_t OpenMQTTNetwork(unsigned int mqtt_index, char *host_name, unsigned int port);

                       ^

MQTTS_Client:169: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
while (WisLTE.CreateMQTTClient(comm_mqtt_index, mqtt_client_id, "", "") != 0){
^
In file included from /WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:2:0:
/Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:93:33: error: initializing argument 2 of 'Mqtt_Client_Result_Status_t WisLTEBG96MQTT::CreateMQTTClient(unsigned int, char*, char*, char*)' [-fpermissive]
Mqtt_Client_Result_Status_t CreateMQTTClient(unsigned int mqtt_index, char *client_id, char *username, char *password);

                             ^

/WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino: In function 'void loop()':
MQTTS_Client:201: error: invalid conversion from 'char*' to 'char' [-fpermissive]
sta_buf = strstr(mqtt_recv, "","");
^
MQTTS_Client:206: error: invalid conversion from 'char
' to 'char' [-fpermissive]
sta_buf = strchr(mqtt_recv, ',');
^
exit status 1
invalid conversion from 'const char
' to 'char*' [-fpermissive]
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.