levkovigor / ppposclient

A client library for gsm ppp protocol. This library can be used to make GET and POST requests and to connect mqtt with PubSubClient. It supports ESP32.
MIT License
13 stars 9 forks source link

Library Issues #11

Open HeetShukla opened 1 month ago

HeetShukla commented 1 month ago

Hello,

This is Heet Shukla. i try to develop PPPOS Example, but when I Add #include and #include i got below Error---->

C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:43:1: error: unknown type name 'ppp_pcb' ppp_pcb ppp; ^~~ C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:49:27: error: unknown type name 'ppp_pcb' static void ppp_status_cb(ppp_pcb pcb, int err_code, void ctx) ^~~ C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:149:34: error: unknown type name 'ppp_pcb' static u32_t ppp_output_callback(ppp_pcb pcb, u8_t data, u32_t len, void ctx) ^~~ C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c: In function 'PPPOS_start': C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:203:47: error: 'ppp_output_callback' undeclared (first use in this function); did you mean 'dns_found_callback'? ppp = pppapi_pppos_create(&ppp_netif, ppp_output_callback, ppp_status_cb, NULL); ^~~~~~~ dns_found_callback C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:203:47: note: each undeclared identifier is reported only once for each function it appears in C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:203:68: error: 'ppp_status_cb' undeclared (first use in this function); did you mean 'nvs_stats_t'? ppp = pppapi_pppos_create(&ppp_netif, ppp_output_callback, ppp_status_cb, NULL); ^~~~~ nvs_stats_t C:\Users\Dell\Documents\Arduino\libraries\PPPOSClient\src\PPPOS.c:210:30: error: 'PPPAUTHTYPE_PAP' undeclared (first use in this function); did you mean 'IP_SET_TYPE_VAL'? pppapi_set_auth(ppp, PPPAUTHTYPE_PAP, PPP_User, PPP_Pass); ^~~~~~~ IP_SET_TYPE_VAL

image

So can you help me Solve these errors.

Thank you Heet Shukla E-mail: heetshukla.89@gmail.com Mobile No. : +91 9824390070

levkovigor commented 1 month ago

@HeetShukla ESP32-Arduino version should be 2.0.0, or check issue https://github.com/levkovigor/ppposclient/issues/8

HeetShukla commented 1 month ago

I used Arduino version 2.3.2, so I need to change the version?

levkovigor commented 1 month ago

@HeetShukla I used Arduino version 1.8.19 and ESP32-Arduino version 2.0.0

HeetShukla commented 2 weeks ago

Hello,

I tried on Arduino IDE Version 2.3.2 and Arduino IDE 1.8.19 to Install ESP32 Version 2.0.0 using https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json this and https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json link, but still I’m not able to install ESP32 Version 2.0.0 board. using upper link I got only 2.0.10, 2.0.11, 2.0.15 version board. I’m working on PPPos Library so I need to work on Esp32 version 2.0.0 board. so kindly help me how can I install Esp32 version 2.0.0 board.

levkovigor commented 2 weeks ago

@HeetShukla with your link it exists

image