Please, help send data to device

Hello!
I installed chirpstack server and configured everything (gateway/network, etc. servers).
I have a simple task - to send random data to the Chirpstack server and so they appear in the list there. For example “temperature : 35”, “humidity : 70”. Tried through curl and mosquitto_pub but I could not send anything to the server.
Please help, I spent a lot of time and my head is already boiling.

Please note that you need to construct valid LoRaWAN messages or these will be rejected by the NS. E.g. you could use GitHub - brocaar/lorawan: Package lorawan provides structures and tools to read and write LoraWAN messages from and to a slice of bytes. to construct these messages. Note that you will need to define an encoding for your data (typically you would not send JSON using LoRaWAN) and implement a codec in ChirpStack to decode it again.