Skip to content

Commit

Permalink
Update IoT Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Sep 27, 2024
1 parent 9658f63 commit 29187a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions link-devices
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -e
echo
echo -e "⏳ Link Devices to Animal entities"
printf "⏳ Link Devices to Animal entities"


generate_post_data()
Expand All @@ -23,7 +23,7 @@ devices="{\"devices\":[";
for number in 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100
do

devices="$devices {\"device_id\":\"cow$number\", \"entity_type\": \"Device\" , \"entity_name\": \"urn:ngsi-ld:Device:cow$number\",";
devices="$devices {\"device_id\":\"cow$number\", \"entity_type\": \"Device\" , \"entity_name\": \"urn:ngsi-ld:Device:cow$number\", \"apikey\": \"98699\",";
devices="$devices \"static_attributes\": [
{
\"name\": \"controlledAsset\",
Expand Down Expand Up @@ -55,7 +55,7 @@ devices="{\"devices\":[";
for number in 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100
do

devices="$devices {\"device_id\":\"pig$number\", \"entity_type\": \"Device\" , \"entity_name\": \"urn:ngsi-ld:Device:pig$number\",";
devices="$devices {\"device_id\":\"pig$number\", \"entity_type\": \"Device\" , \"entity_name\": \"urn:ngsi-ld:Device:pig$number\", \"apikey\": \"110990\",";
devices="$devices \"static_attributes\": [
{
\"name\": \"controlledAsset\",
Expand Down

0 comments on commit 29187a6

Please sign in to comment.