Creation of execute resource in LWM2M

I want to create execute resource in LWM2M but its not creating. i am creating one object for that i am taking object id 420 and instance id 0 or 1 and resource id like 1,2,3,..... , object is creating on Leshan server but when i am trying to create execute resource its not creating on Leshan server. please help me out on this topic, how i can create execute resource.

I presume that you are using a using a contrib node, node-red-contrib-something probably. Unless you tell us what that node is we have little chance of helping. Also tell us how you have it configured and if appropriate what message you are sending it, what should happen and what is actually happening. Also check on the node's GitHub page of it has one to see if there is already an open issue. Finally tell us what operating system you are running on and what version of node red and nodejs.

I am trying to create one device discovery flow. I have my own API there i am excising data from the leshan server so in device discovery i am creating one object(420) and two instances(Temperature (0) and Humidity (1)) . For that we have to observe separately like /420/0 and /420/1, bur i want to observe only once and in response i want all the resources.

[{"id":"ff521444.be0b38","type":"lwm2m client in","z":"561808f0.eb2318","name":"","lwm2mClient":"2512d94d.f39856","subscribeObjectEvents":true,"x":400,"y":120,"wires":[["8e8a549b.27e658","abf65183.e53b7"]]},{"id":"8e8a549b.27e658","type":"debug","z":"561808f0.eb2318","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":100,"wires":[]},{"id":"abf65183.e53b7","type":"function","z":"561808f0.eb2318","name":"","func":"var result=msg.payload.eventType;\nvar uri=msg.payload.uri;\nif(uri==\"/3/0/5\"&&result==\"executed\")\n{\n   msg={\n       \"topic\":\"^/420/.*\"\n   }\n   return msg;\n}","outputs":1,"noerr":0,"x":530,"y":180,"wires":[["6a6d94f1.81478c","d0e95a4b.3e8748"]]},{"id":"6a6d94f1.81478c","type":"lwm2m client in","z":"561808f0.eb2318","name":"","lwm2mClient":"2512d94d.f39856","subscribeObjectEvents":true,"x":500,"y":300,"wires":[["e3638cae.a8ba2"]]},{"id":"e3638cae.a8ba2","type":"debug","z":"561808f0.eb2318","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":730,"y":320,"wires":[]},{"id":"d0e95a4b.3e8748","type":"debug","z":"561808f0.eb2318","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":700,"y":200,"wires":[]},{"id":"bb71d17d.ced77","type":"inject","z":"561808f0.eb2318","name":"","topic":"/3/0/5/execute","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":120,"wires":[["a674d995.fe2938"]]},{"id":"a674d995.fe2938","type":"lwm2m client out","z":"561808f0.eb2318","name":"","lwm2mClient":"2512d94d.f39856","x":270,"y":280,"wires":[]},{"id":"2512d94d.f39856","type":"lwm2m client","z":"","disabled":false,"clientName":"TMPL-FA-1663","enableDTLS":false,"clientPort":"5683","lifetimeSec":"300","reconnectSec":"30","requestBootstrap":false,"saveProvisionedConfig":false,"useIPv4":true,"serverHost":"leshan.iot-lab.info","serverPort":"5683","redirectLwm2mClientLog":false,"dumpLwm2mMessages":false,"hideSensitiveInfo":true,"propagateInternalEvents":false,"objects":"{\"5\":{\"0\":{\"1\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"\"},\"2\":{\"type\":\"FUNCTION\",\"acl\":\"E\"},\"3\":{\"type\":\"INTEGER\",\"acl\":\"RW\",\"value\":22},\"5\":{\"type\":\"INTEGER\",\"acl\":\"RW\",\"value\":3},\"6\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"\"},\"7\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"\"},\"8\":{\"type\":\"INTEGER\",\"acl\":\"RW\",\"value\":3},\"9\":{\"type\":\"INTEGER\",\"acl\":\"RW\",\"value\":5}}},\"420\":{\"0\":{\"1\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"Temperature_sensor\"},\"2\":{\"type\":\"INTEGER\",\"acl\":\"RW\",\"value\":\"4\"},\"3\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"RS232\"},\"4\":{\"type\":\"STRING\",\"acl\":\"R\",\"value\":\"\"},\"5\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"/\"},\"6\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"Trinity\"}},\"1\":{\"1\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"Humidity_sensor\"},\"2\":{\"type\":\"INTEGER\",\"acl\":\"RW\",\"value\":\"4\"},\"3\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"RS485\"},\"4\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"\"},\"5\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"/\"},\"6\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"Trinity\"}}},\"421\":{\"0\":{\"1\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"\"},\"2\":{\"type\":\"FUNCTION\",\"acl\":\"E\"},\"3\":{\"type\":\"FUNCTION\",\"acl\":\"E\"}}},\"3304\":{\"0\":{\"5601\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":2.2},\"5602\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":2.4},\"5603\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":22.2},\"5604\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":3.4},\"5605\":{\"type\":\"FUNCTION\",\"acl\":\"E\"},\"5606\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"RS232\"},\"5700\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":44.2},\"5701\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"\"}}},\"3330\":{\"0\":{\"5601\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":2.2},\"5602\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":2.4},\"5603\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":22.2},\"5604\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":3.4},\"5605\":{\"type\":\"FUNCTION\",\"acl\":\"E\"},\"5700\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":2.2},\"5701\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"bb\"},\"5750\":{\"type\":\"STRING\",\"acl\":\"RW\",\"value\":\"hh\"},\"5821\":{\"type\":\"FLOAT\",\"acl\":\"RW\",\"value\":2.2}}}}"}]

Please read my post again and try and answer all the questions.

Yes, i am using node-red-contrib-lwm2m node.
i configured with leshan server.
By inject node i am sending topic like(^/3/.*) for device discovery, if i am passing this topic i am getting all the information from the server about devices, firmware and so on, after that i am creating my own object (420/0/1 and 420/1/1). after deploying it is creating on the leshan server and on server and on server observe option is there for both 420/0 and 420/1, so when i am clicking on observe it is giving all the information whatever present in that object.
but we have to click for both observe 420/0 and 420/1 then only it will give the information for both. but i want to click only one observe and i want all the information for both.
I am using Linux system for lwm2m. if you have any other option please suggest me.

Simply i want to pass only one command in lwm2m node and i want all the device information whatever devices are connected with my gateway like temperature sensor and humidity sensor.

I note that you still not told us which version of node red you are using, what OS you are running node-red on (unless that is what you mean by 'for lwm2m') and what version of nodejs you are using.
However it probably doesn't matter since you say the lwm2m system is working as expected.
I don't understand what you mean when you say you have to click twice for both sets of data. There only appears to be one inject node in the flow. Do you mean you have to click that twice?

node-red version : 0.20.8
OS: Linux
nodejs version: 10.14.0
i want to create Exec (execute) button in the lwm2m server. We tried using the below code...

"421": {
"0": {
"1": {
"type": "FUNCTION",
"acl": "E"
}
}
}

but not working out, we can't able to create it. just help me out with this.

Sorry, I am going to have to give up on this, it seems that I don't know enough about that node to fully understand the question. Possibly someone else will be able to help, but otherwise maybe it would be better to ask on the node's repository.

Ok,

Thank you