Read Metadata values of Location or Text

Ok, wil try in some time and reply

Getting only lattitude
no longitud, text, state, zip etc.

Edit: Sorry Mistake

How do you read the data?

Could you please show it?

From device
By the way I am reading the prebuilt location metadata.

ANy clues?

Please show your code… Otherwise i can only guess.

//
//// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID           "TMPLxxxxxx"
#define BLYNK_DEVICE_NAME           "Device"

#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD

#include "BlynkEdgent.h"

void setup()
{
  Serial.begin(115200);
  delay(100);

  BlynkEdgent.begin();
}

void loop() {
  BlynkEdgent.run();
}
BLYNK_WRITE(InternalPinMETA) {
    String field = param[0].asStr();
Serial.println(field);
    if (field == "Location") {
        String value = param[1].asStr();

Serial.println(value);
        // Do something with Metadata value
    } 
}
BLYNK_CONNECTED() {
  // Send requests for different metadata
  Blynk.sendInternal("meta", "get", "Location");
//  Blynk.sendInternal("meta", "get", "Device Model");
}


Meta setup- just random values for testi ng

@VIGHNESHNS2008 please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.

So you read the first param lon, in order to read the next one you need to use param[2].asStr(). Right only lon/lat is supported. It was done for one of the clients. I’ll check if can attach more data.

Will try

I am able to read latitude and longitude. I tried reading param1,2,3,4,5,6,7,8.
Two have values. Other’s blank. Yhere are other values country state zip

@Dmitriy any clluesS

As I said:

can we read metea through api http

sir any replieS

Hello. Yes, you can. But there is no doc about it. I’ll update the topic when I have time to put the docs.

please tell me the api link formatS

exit status 1
variable or field 'BlynkWidgetWriteInternalPinMETA' declared void

i am gettting this issue
lib version 1.01

BLYNK_WRITE(InternalPinMETA) {
    String field = param[0].asStr();
    if (field == "Location Of DEvice") {
        String Location = param[1].asStr();
        // Do something with Metadata value
    } else if (field == "Device Model") {
        String value = param[1].asStr();
        // Do something with Metadata value
    }
}
Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

WARNING: Category 'Communication,AsyncWebServer' in library AsyncWebServer_STM32 is not valid. Setting to 'Uncategorized'
ESP8266_Standalone:441:73: error: variable or field 'BlynkWidgetWriteInternalPinMETA' declared void

 BLYNK_WRITE(InternalPinMETA) {

                                                                         ^

ESP8266_Standalone:441:38: error: 'BlynkReq' was not declared in this scope

 BLYNK_WRITE(InternalPinMETA) {

                                      ^

ESP8266_Standalone:441:85: error: expected primary-expression before 'const'

 BLYNK_WRITE(InternalPinMETA) {

                                                                                     ^

ESP8266_Standalone:435:6: error: previous declaration of 'void BlynkOnConnected()' with 'C++' linkage

 BLYNK_CONNECTED() {

      ^

In file included from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:38:0,

                 from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,

                 from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:24,

                 from E:\Pollution SSH\ESP8266_Standalone\ESP8266_Standalone.ino:318:

C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:177:52: error: conflicts with new declaration with 'C' linkage

 #define BLYNK_CONNECTED()    void BlynkOnConnected()

                                                    ^

C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:228:1: note: in expansion of macro 'BLYNK_CONNECTED'

 BLYNK_CONNECTED();

 ^

exit status 1
variable or field 'BlynkWidgetWriteInternalPinMETA' declared void

Invalid library found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson: no headers files (.h) found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson
Invalid library found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson: no headers files (.h) found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.