Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Welcome to the examples directory! This guide will help you get started with the

## Available Examples

Note that some starter examples include the creation of a `brightsign-dumps` folder, which is used by the BrightSign OS to store crash information and is very useful to BrightSign Support when troubleshooting. The creation of this folder is an optional but recommended step to help with diagnosing application issues.

### HTML & Web Storage Examples

#### HTML Starter Example
Expand Down
6 changes: 6 additions & 0 deletions examples/html-starter-example/autorun.brs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
function main()
' Create directory to store crash-dumps (optional)
dir = CreateDirectory("SD:/brightsign-dumps")
if not dir then
print "Could not create directory"
end if

' This interface is the preferred way for JavaScript content to communicate with its parent application.
' https://brightsign.atlassian.net/wiki/x/-gAeG
mp = CreateObject("roMessagePort")
Expand Down
5 changes: 5 additions & 0 deletions examples/node-simple-server-example/src/autorun.brs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
function main()
' Create directory to store crash-dumps (optional)
dir = CreateDirectory("SD:/brightsign-dumps")
if not dir then
print "Could not create directory"
end if

mp = createobject("roMessagePort")

Expand Down
5 changes: 5 additions & 0 deletions examples/node-starter-example/autorun.brs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
function main()
' Create directory to store crash-dumps (optional)
dir = CreateDirectory("SD:/brightsign-dumps")
if not dir then
print "Could not create directory"
end if

mp = createobject("roMessagePort")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
function main()

' Create directory to store crash-dumps (optional)
dir = CreateDirectory("SD:/brightsign-dumps")
if not dir then
print "Could not create directory"
end if

mp = CreateObject("roMessagePort")

'Enable lDWS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
function main()

' Create directory to store crash-dumps (optional)
dir = CreateDirectory("SD:/brightsign-dumps")
if not dir then
print "Could not create directory"
end if

' Create Message Port
mp = CreateObject("roMessagePort")
' Enable lDWS
Expand Down
6 changes: 6 additions & 0 deletions templates/html5-app-template/src/autorun.brs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
function main()

' Create directory to store crash-dumps (optional)
dir = CreateDirectory("SD:/brightsign-dumps")
if not dir then
print "Could not create directory"
end if

mp = CreateObject("roMessagePort")
'Enable lDWS
EnableLDWS()
Expand Down