Help us understand the problem. What is going on with this article?

質問です

ESP-WROOM-32からgoogle spread sheetに書き込みを試みています。

ESP332からGASへ値の受け渡しができているか確認のため
下記google apps script を実行すると

undefined からプロパティ「parameter」を読み取れません。と表示されます。

コード.gs
function doGet(e) {
  Logger.log(e);
  var param = e.parameter.param;
  Logger.log(param);
  return ContentService.createTextOutput(param);
}

ideのスケッチは下記です。

#include <WiFiClientSecure.h> 
WiFiClientSecure client;
float sensor_data1;
//const char* ssid     = "使用しているwifi名";
const char* password = "使用しているwifiのパスワード";  
const char* server = "script.google.com"; 
const char* key = "goolge script IDを記入";

void setup() {
  Serial.begin(115200); 
}
void wifi_conect(){

WiFiServer server(80);
  Serial.print("Attempting to connect to SSID: ");
  Serial.println(ssid);
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(1000);
  }
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());
    server.begin();
  }
  void g_acsess(){
  sensor_data1=100; //testのため値を固定
  String URL="https://script.google.com/macros/s/";
  URL += key;
  URL += "/exec?";
  URL += "1_cell=";

  Serial.println(URL);
  Serial.println("\nStarting connection to server...");
  if (!client.connect(server, 443))
    Serial.println("Connection failed!");
  else {
    Serial.println("Connected to server!\n");
    Serial.println("GET " + URL);//hioki test
    client.println("GET " + URL);
    client.stop();
    Serial.println("finish.");
  } 
}
void loop() {
  delay(10000); 
  wifi_conect();
  g_acsess();   
  WiFi.disconnect();   
}

ide arudinoのシリアルモニタに下記表示されています。

Attempting to connect to SSID:使用しているwifi名
..Connected to 使用しているwifi名
IP address: 
192.168.20.30
https://script.google.com/macros/s/ここにgoogle script IDを書いています/exec?1_cell=100.00
Starting connection to server...
Connected to server!
GET https://script.google.com/macros/s/**ここにgoogle script IDを書いています**/exec?1_cell=100.00
finish.

上記の 「ここにgoogle script IDを書いています」は
GASの 公開→webアプリケーションとして導入→
https://script.google.com/macros/s/この部分/exec 
の「この部分」と合致しています。

doGet(e)のeが空が原因なようですが、どうすればeに値が入るか教えていただけますでしょうか?

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした