connecting directly to Google Pub/Sub from ESP32 device

Hi,

Since Google IoT Core is deprecated, I want to publish a topic directly from my ESP32 device to Google Pub/Sub (without MQTT broker server).

I went through this article but could not find a code sample or client library to use.

https://cloud.google.com/architecture/connected-devices/device-pubsub-architecture

https://cloud.google.com/pubsub/docs/reference/libraries

Appreciate assistance,
Thanks

Not familar with ESP32 but maybe you can check https://cloud.google.com/integration-connectors/docs/connectors/pubsub/configure. You should be able to publish a topic by using Application Integration(https://cloud.google.com/application-integration/docs/overview)) with the pubsub connector.