Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode decode issue #100

Open
galihteja opened this issue Jul 11, 2020 · 0 comments
Open

encode decode issue #100

galihteja opened this issue Jul 11, 2020 · 0 comments

Comments

@galihteja
Copy link

In file included from sketch\gBase64 (2).cpp:1:0:
C:\Users\Galih Teja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.2\cores\esp8266/Base64.h:34:12: error: 'String' does not name a type
static String encode(const uint8_t * data, size_t length, bool doNewLines = true);
^
C:\Users\Galih Teja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.2\cores\esp8266/Base64.h:35:12: error: 'String' does not name a type
static String inline encode(const String& text, bool doNewLines = true)
^
In file included from sketch\gBase64.cpp:1:0:
C:\Users\Galih Teja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.2\cores\esp8266/Base64.h:34:12: error: 'String' does not name a type
static String encode(const uint8_t * data, size_t length, bool doNewLines = true);
^
C:\Users\Galih Teja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.2\cores\esp8266/Base64.h:35:12: error: 'String' does not name a type
static String inline encode(const String& text, bool doNewLines = true)
^
E:\TEJA\LoRa\Gateway\ESP-1ch-Gateway-v5.0--OLD-master\ESP-sc-gway_txRx.ino: In function 'int sendPacket(uint8_t*, uint8_t)':
_txRx:135:65: error: 'base64_dec_len' was not declared in this scope
LoraDown.payLength = base64_dec_len((char *) data, strlen(data));// Length of the Payload data
^
_txRx:136:61: error: 'base64_decode' was not declared in this scope
base64_decode((char *) payLoad, (char ) data, strlen(data)); // Fill payload w decoded message
^
E:\TEJA\LoRa\Gateway\ESP-1ch-Gateway-v5.0--OLD-master\ESP-sc-gway_txRx.ino: In function 'int buildPacket(uint32_t, uint8_t
, LoraUp, bool)':
_txRx:443:47: error: 'base64_enc_len' was not declared in this scope
int encodedLen = base64_enc_len(messageLength); // max 341
^
_txRx:452:52: error: 'base64_encode' was not declared in this scope
base64_encode(b64, (char *) message, messageLength);// max 341
^
Multiple libraries were found for "WiFiUdp.h"
Used: C:\Users\Galih Teja\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.2\libraries\ESP8266WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Multiple libraries were found for "SH1106.h"
Used: C:\Users\Galih Teja\Documents\Arduino\libraries\esp8266-oled-ssd1306-master
Not used: C:\Users\Galih Teja\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays
exit status 1
'base64_dec_len' was not declared in this scope

@galihteja galihteja changed the title anyone can help me with this issue? encode decode issue Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant